wiki.techinc.nl/includes
Tim Starling 558471f044 Conditional request support
* Added ConditionalHeaderUtil, a conditional request helper class meant
  for composition into Handler. I evaluated the composer package
  micheh/psr7-cache for this role but I decided that I prefer DIY
  code rather than some rather ugly glue.
* Check conditional request headers prior to entry into
  Handler::execute(). Contrary to what was previously documented, use
  the results of getLastModified() and getETag() to set headers in the
  response. This is convenient and can be overridden in the Handler if
  desired by overriding a one-line function.
* Instead of locking up header parsing inside ConditionalHeaderUtil as
  was done in micheh/psr7-cache, make a start on a new reusable header
  parsing framework, with recursive descent parsers for HTTP-date and
  IfNoneMatch.

Change-Id: I260809081cad7701df8620ab03834158670d4230
2019-10-14 12:01:25 +11:00
..
actions Fix some phan warnings for too many params (part 1) 2019-10-10 04:44:53 +00:00
api Use real varargs in ApiBase class 2019-10-11 20:11:59 +02:00
auth Use @phan-template instead of @template 2019-09-09 19:29:22 +02:00
block Clear block cookie when tracking block, not when checking block 2019-10-09 14:09:34 +01:00
cache Fix some phan warnings for too many params (part 1) 2019-10-10 04:44:53 +00:00
changes Unsuppress PhanParamReqAfterOpt, use PHP71 nullable types 2019-10-10 11:53:58 +02:00
changetags revisionlist: Fix bad type hints in RevisionListBase 2019-10-05 08:10:56 +00:00
clientpool Make CdnCacheUpdate::expand() private and update the sole caller 2019-09-13 01:56:23 +00:00
collation Declare dynamic properties 2019-09-14 15:21:26 +02:00
composer Provide command to adjust phpunit.xml for code coverage 2019-09-09 14:32:02 +02:00
config Services: Convert PermissionManager's static to a const now HHVM is gone 2019-10-08 11:23:08 -07:00
content phan: Disable enable_class_alias_support 2019-09-15 08:26:52 +00:00
context Use varargs for MessageLocalizer::msg and similar 2019-10-05 17:47:49 +00:00
dao Make DBAccessBase use DBConnRef, rename $wiki, and hide getLoadBalancer() 2019-09-08 03:34:18 +00:00
db Services: Convert MWLBFactory's static to a const now HHVM is gone 2019-10-08 21:14:19 +00:00
debug Fix new phan errors, part 1 2019-10-11 15:04:04 +00:00
deferred Fix new phan errors, part 2 2019-10-12 10:35:09 +00:00
diff Unsuppress PhanParamReqAfterOpt, use PHP71 nullable types 2019-10-10 11:53:58 +02:00
edit
editpage Move getRestrictionLevels from NamespaceInfo to PermissionManager. 2019-08-22 14:32:38 -07:00
exception PHPVersionCheck: Simplify warning as part of dropping HHVM support 2019-10-10 18:15:48 -07:00
export Unsuppress PhanParamReqAfterOpt, use PHP71 nullable types 2019-10-10 11:53:58 +02:00
externalstore phpcs: Enable PSR12.Files.ImportStatement.LeadingSlash and make pass 2019-10-11 20:01:32 +02:00
filebackend Fix new phan errors, part 2 2019-10-12 10:35:09 +00:00
filerepo Fix new phan errors, part 2 2019-10-12 10:35:09 +00:00
gallery Fix new phan errors, part 2 2019-10-12 10:35:09 +00:00
historyblob phan: Disable enable_class_alias_support 2019-09-15 08:26:52 +00:00
htmlform Fix new phan errors, part 2 2019-10-12 10:35:09 +00:00
http Fix new phan errors, part 2 2019-10-12 10:35:09 +00:00
import import: Update docs about WikiRevision requiring a Config 2019-09-17 16:36:32 +02:00
installer Fix new phan errors, part 2 2019-10-12 10:35:09 +00:00
interwiki
jobqueue Fix new phan errors, part 2 2019-10-12 10:35:09 +00:00
json
language Follow-up Ifa346c8a92: LanguageNameUtils: CONSTRUCTOR_OTPIONS, not constructorOptions 2019-10-10 17:01:49 -07:00
libs Remove Windows PHP < 7.1 edgecase from FSFileBackend::getFeatures() 2019-10-12 22:42:58 +01:00
linkeddata
linker
logging Fix new phan errors, part 3 2019-10-12 10:35:22 +00:00
mail phan: Enable PhanTypeMismatchArgument issue 2019-09-19 20:11:42 +02:00
media Fix new phan errors, part 3 2019-10-12 10:35:22 +00:00
Message TextFormatter: Remove a pointless type check 2019-10-07 15:20:57 +00:00
Navigation Unsuppress another phan issue (part 7) 2019-09-03 17:19:21 +00:00
objectcache Merge "objectcache: Remove deprecated WAN-methods in ObjectCache" 2019-10-11 18:24:49 +00:00
page Fix new phan errors, part 3 2019-10-12 10:35:22 +00:00
pager Pass Title to IndexPager::buildPrevNextNavigation 2019-09-04 20:25:59 +02:00
parser Fix new phan errors, part 3 2019-10-12 10:35:22 +00:00
password Remove meaningless (auto-generated?) constructor documentation 2019-10-01 14:34:21 +02:00
Permissions Fix new phan errors, part 1 2019-10-11 15:04:04 +00:00
poolcounter Unsuppress another phan issue (part 7) 2019-09-03 17:19:21 +00:00
preferences Fix new phan errors, part 3 2019-10-12 10:35:22 +00:00
profiler Fix new phan errors, part 3 2019-10-12 10:35:22 +00:00
rcfeed Upgrade phan config to 0.7.1 2019-09-04 08:20:53 +00:00
registration Fix new phan errors, part 3 2019-10-12 10:35:22 +00:00
resourceloader Fix new phan errors, part 3 2019-10-12 10:35:22 +00:00
Rest Conditional request support 2019-10-14 12:01:25 +11:00
Revision Log a warning when the 'text' flag is used with getQueryInfo() 2019-10-07 19:14:01 +00:00
revisiondelete revisionlist: Fix bad type hints in RevisionListBase 2019-10-05 08:10:56 +00:00
revisionlist revisionlist: Fix bad type hints in RevisionListBase 2019-10-05 08:10:56 +00:00
search Fix new phan errors, part 3 2019-10-12 10:35:22 +00:00
session Use PHP71 nullable type in setForceHTTPSCookie 2019-10-10 16:08:51 +00:00
shell shell: Resolve a TODO asking for error_clear_last() 2019-10-02 21:38:09 -07:00
site Merge "site: Make getPageUrl consistently return null" 2019-09-23 16:36:32 +00:00
skins BaseTemplate: Use explicit varargs in method parameters 2019-10-05 18:27:30 +02:00
sparql
specialpage Remove extra param comment and enable phpcs rule 2019-10-11 21:36:25 +02:00
specials Fix new phan errors, part 3 2019-10-12 10:35:22 +00:00
Storage Merge "NameTableStore: ensure consistency upon rollback." 2019-10-10 15:40:17 +00:00
templates Use Mustache template in img_auth.php 2019-10-05 22:57:30 +02:00
tidy
title Merge "Title: make newFromText, isValid, and canExist behave consistently." 2019-10-08 13:54:57 +00:00
upload UploadBase: remove HHVM support 2019-10-02 21:03:49 -07:00
user Fix new phan errors, part 3 2019-10-12 10:35:22 +00:00
utils Fix new phan errors, part 4 2019-10-12 10:35:31 +00:00
watcheditem Fix new phan errors, part 4 2019-10-12 10:35:31 +00:00
widget phpcs: Enable PSR12.Files.ImportStatement.LeadingSlash and make pass 2019-10-11 20:01:32 +02:00
.htaccess
ActorMigration.php Fix new phan errors, part 1 2019-10-11 15:04:04 +00:00
AjaxDispatcher.php Replace User::isAllowed with PermissionManager. 2019-08-20 14:43:51 -07:00
AjaxResponse.php docs: Avoid some scalar juggling 2019-09-19 17:21:24 +00:00
AutoLoader.php MessageFormatterFactory 2019-08-28 12:28:05 +10:00
Autopromote.php docs: Avoid some scalar juggling 2019-09-19 17:21:24 +00:00
BadFileLookup.php BadFileLookup to replace wfIsBadImage 2019-08-21 20:45:37 +03:00
CategoriesRdf.php
Category.php Remove more Oracle and Mssql leftovers 2019-08-25 17:21:49 +00:00
CategoryFinder.php
CategoryViewer.php
CommentStore.php Unsuppress PhanParamReqAfterOpt, use PHP71 nullable types 2019-10-10 11:53:58 +02:00
CommentStoreComment.php
ConfiguredReadOnlyMode.php
ContentSecurityPolicy.php Remove more HHVM hacks 2019-10-06 10:16:09 +00:00
DefaultSettings.php Merge "Session: Remove mcrypt support, dropped from PHP 7.2" 2019-10-08 04:03:46 +00:00
Defines.php
DeprecatedGlobal.php
DerivativeRequest.php
DevelopmentSettings.php Set l18n cache to array in DevelopmentSettings.php 2019-09-17 22:52:59 +02:00
DummyLinker.php
EditPage.php block: Allow cookie-block tracking from any uncached web request 2019-10-01 13:52:58 -04:00
EventRelayerGroup.php
FauxRequest.php FauxRequest: don’t override getValues() 2019-09-11 18:56:31 +02:00
FauxResponse.php
FeedUtils.php phan: Disable enable_class_alias_support 2019-09-15 08:26:52 +00:00
FileDeleteForm.php Document $file in FileDeleteForm as LocalFile (not File) 2019-09-08 04:02:20 +00:00
ForeignResourceManager.php Fix new phan errors, part 1 2019-10-11 15:04:04 +00:00
ForkController.php LockManagerGroupFactory to replace singletons 2019-08-27 13:19:15 +03:00
FormOptions.php
GitInfo.php
GlobalFunctions.php Fix new phan errors, part 1 2019-10-11 15:04:04 +00:00
HeaderCallback.php
Hooks.php
Html.php installer: Deprecate WebInstaller::getInfoBox, getWarningBox and getErrorBox 2019-09-26 19:26:33 +00:00
Linker.php Fix new phan errors, part 1 2019-10-11 15:04:04 +00:00
LinkFilter.php Better grouping for code adding elements to arrays 2019-09-03 19:38:57 +02:00
ListToggle.php
MagicWord.php
MagicWordArray.php Fix new phan errors, part 1 2019-10-11 15:04:04 +00:00
MagicWordFactory.php
MediaWiki.php Fix typo: occured → occurred 2019-10-06 02:35:49 +01:00
MediaWikiServices.php New LanguageFallback service 2019-10-08 15:11:39 -07:00
MediaWikiVersionFetcher.php
MergeHistory.php MergeHistory: Update revactor_page too 2019-09-17 07:17:38 +00:00
MovePage.php MovePageFactory: make $constructorOptions a constant 2019-10-05 12:55:01 -07:00
MWGrants.php
MWNamespace.php Move getRestrictionLevels from NamespaceInfo to PermissionManager. 2019-08-22 14:32:38 -07:00
MWTimestamp.php
NoLocalSettings.php
OrderedStreamingForkController.php
OutputHandler.php
OutputPage.php Merge "resourceloader: Bump severity of targets violation to WARNING" 2019-10-11 21:25:23 +00:00
PageProps.php
PathRouter.php Setup: Move wgArticlePath validation to its main consumer (PathRouter) 2019-09-25 23:06:52 +00:00
PHPVersionCheck.php PHPVersionCheck: Simplify warning as part of dropping HHVM support 2019-10-10 18:15:48 -07:00
Pingback.php
ProtectionForm.php Pass language to Status::getWikiText 2019-09-21 11:14:54 +00:00
ProxyLookup.php ProxyLookup: Optimise in_array in isConfiguredProxy() 2019-08-31 22:30:08 +01:00
RawMessage.php
ReadOnlyMode.php
Revision.php Hard deprecate Revision::getRevisionText() method 2019-10-07 11:31:20 -07:00
ServiceWiring.php Merge "objectcache: Log debug message for backend of MainObjectStash" 2019-10-11 15:43:53 +00:00
Setup.php Merge "Setup: Move wgArticlePath validation to its main consumer (PathRouter)" 2019-10-07 21:58:16 +00:00
SiteConfiguration.php
SiteStats.php
SiteStatsInit.php
Status.php Suppress PhanUndeclaredProperty for custom properties and phan bugs 2019-09-14 13:22:54 +00:00
StreamFile.php Merge "StreamFile: Deprecate ::parseRange() and ::send404Message() methods" 2019-09-14 01:03:47 +00:00
StubObject.php
StubUserLang.php
TemplateParser.php Remove class_exists( 'LightnCandy' ) 2019-10-09 01:17:11 +01:00
TemplatesOnThisPageFormatter.php Remove usages of Title::quickUserCan 2019-08-29 11:48:30 -07:00
Title.php Fix new phan errors, part 1 2019-10-11 15:04:04 +00:00
TitleArray.php Unsuppress another phan issue (part 7) 2019-09-03 17:19:21 +00:00
TitleArrayFromResult.php
TrackingCategories.php Fix new phan errors, part 3 2019-10-12 10:35:22 +00:00
WebRequest.php WebRequest: Update comment with a TODO now that HHVM is gone 2019-10-10 12:56:42 -07:00
WebRequestUpload.php HHVM removal: Drop hhvm.server.max_post_size ini fallback 2019-10-03 21:46:24 +00:00
WebResponse.php
WebStart.php WebStart: Avoid DB or uselang for nonwrite-api-promise-error message 2019-08-25 19:15:34 +01:00
WikiMap.php Fix new phan errors, part 1 2019-10-11 15:04:04 +00:00
WikiReference.php
Xml.php docs: Avoid some scalar juggling 2019-09-19 17:21:24 +00:00
XmlJsCode.php
XmlSelect.php