aboutsummaryrefslogtreecommitdiffstats
path: root/includes/libs/CookieJar.php
Commit message (Collapse)AuthorAgeFilesLines
* Use short array destructuring instead of list()Tim Starling2022-10-211-1/+1
| | | | | | | | Introduced in PHP 7.1. Because it's shorter and looks nice. I used regex replacement. Change-Id: I0555e199d126cd44501f859cb4589f8bd49694da
* Clean up http classes a bitGergő Tisza2016-11-301-0/+4
| | | | | | | | | | | | | | | | | | | | * added integration tests. We probably don't want automated tests to make external requests but these make manual testing more convenient. Documented some oddities discovered by testing. * made ::$status, ::proxySetup() and ::getHeaderList() protected; they were not referenced in any gerrit-hosted extension and they provide no useful functionality to external callers. Similarly, marked ::read() and ::errorHandler() as internal (these are used as callbacks so can't be protected) * removed inheritance abuse in ::execute() * documented ::execute() as returning a StatusValue (but keep returning a Status for now) * changed setCookie argument defaults to ones that make sense * replaced MWException * moved unit tests to the correct location * fixed some code style issues Change-Id: I5852fc75badc5d475ae30ec2c9376bde7024bd95
* Move CookieJar class to own fileaddshore2016-04-031-0/+103
Change-Id: Ie98eadb2a8015f1290447b79cc095799abaeba4f