|
MediaWiki master
|
Cookie jar to use with MWHttpRequest. More...
Public Member Functions | |
| parseCookieResponseHeader (string $cookie, string $domain) | |
| Parse the content of an Set-Cookie HTTP Response header. | |
| serializeToHttpRequest (string $path, string $domain) | |
| setCookie (string $name, string $value, array $attr) | |
| Set a cookie in the cookie jar. | |
Cookie jar to use with MWHttpRequest.
Does not handle cookie unsetting.
Definition at line 13 of file CookieJar.php.
| Wikimedia\CookieJar::parseCookieResponseHeader | ( | string | $cookie, |
| string | $domain ) |
Parse the content of an Set-Cookie HTTP Response header.
| string | $cookie | |
| string | $domain | Cookie's domain |
Definition at line 60 of file CookieJar.php.
| Wikimedia\CookieJar::serializeToHttpRequest | ( | string | $path, |
| string | $domain ) |
Definition at line 41 of file CookieJar.php.
References $path.
| Wikimedia\CookieJar::setCookie | ( | string | $name, |
| string | $value, | ||
| array | $attr ) |
Set a cookie in the cookie jar.
Make sure only one cookie per-name exists.
| string | $name | |
| string | $value | |
| string[] | $attr |
Definition at line 25 of file CookieJar.php.
Referenced by MediaWiki\Http\MWHttpRequest\setCookie().