|
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 11 of file CookieJar.php.
| 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 58 of file CookieJar.php.
| CookieJar::serializeToHttpRequest | ( | string | $path, |
| string | $domain ) |
Definition at line 39 of file CookieJar.php.
References $path.
| 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 23 of file CookieJar.php.
Referenced by MediaWiki\Http\MWHttpRequest\setCookie().