MediaWiki
1.33.0
|
Cookie jar to use with MWHttpRequest. More...
Public Member Functions | |
parseCookieResponseHeader ( $cookie, $domain) | |
Parse the content of an Set-Cookie HTTP Response header. More... | |
serializeToHttpRequest ( $path, $domain) | |
setCookie ( $name, $value, $attr) | |
Set a cookie in the cookie jar. More... | |
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, $name, $value, as, captcha-old\count, list, setCookie(), and Cookie\validateCookieDomain().
CookieJar::serializeToHttpRequest | ( | $path, | |
$domain | |||
) |
string | $path | |
string | $domain |
Definition at line 55 of file CookieJar.php.
References $path, $serialized, and as.
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().