MediaWiki REL1_37
|
Cookie jar to use with MWHttpRequest. More...
Public Member Functions | |
parseCookieResponseHeader ( $cookie, $domain) | |
Parse the content of an Set-Cookie HTTP Response header. | |
serializeToHttpRequest ( $path, $domain) | |
setCookie ( $name, $value, $attr) | |
Set a cookie in the cookie jar. | |
Private Attributes | |
Cookie[] | $cookie = [] |
Cookie jar to use with MWHttpRequest.
Does not handle cookie unsetting.
Definition at line 25 of file CookieJar.php.
CookieJar::parseCookieResponseHeader | ( | $cookie, | |
$domain | |||
) |
Parse the content of an Set-Cookie HTTP Response header.
string | $cookie | |
string | $domain | Cookie's domain |
Definition at line 76 of file CookieJar.php.
References $cookie, setCookie(), and Cookie\validateCookieDomain().
CookieJar::serializeToHttpRequest | ( | $path, | |
$domain | |||
) |
string | $path | |
string | $domain |
Definition at line 55 of file CookieJar.php.
References $path, and $serialized.
CookieJar::setCookie | ( | $name, | |
$value, | |||
$attr | |||
) |
Set a cookie in the cookie jar.
Make sure only one cookie per-name exists.
string | $name | |
string | $value | |
array | $attr |
Definition at line 36 of file CookieJar.php.
Referenced by parseCookieResponseHeader(), and MWHttpRequest\setCookie().
|
private |
Definition at line 27 of file CookieJar.php.
Referenced by parseCookieResponseHeader().