Open Monograph Press
3.3.0
|
Public Member Functions | |
__construct (array $data=[]) | |
__toString () | |
getDiscard () | |
getDomain () | |
getExpires () | |
getHttpOnly () | |
getMaxAge () | |
getName () | |
getPath () | |
getSecure () | |
getValue () | |
isExpired () | |
matchesDomain ($domain) | |
matchesPath ($requestPath) | |
setDiscard ($discard) | |
setDomain ($domain) | |
setExpires ($timestamp) | |
setHttpOnly ($httpOnly) | |
setMaxAge ($maxAge) | |
setName ($name) | |
setPath ($path) | |
setSecure ($secure) | |
setValue ($value) | |
toArray () | |
validate () | |
Static Public Member Functions | |
static | fromString ($cookie) |
Set-Cookie object
Definition at line 7 of file SetCookie.php.
GuzzleHttp\Cookie\SetCookie::__construct | ( | array | $data = [] | ) |
array | $data | Array of cookie data provided by a Cookie parser |
Definition at line 75 of file SetCookie.php.
References GuzzleHttp\Cookie\SetCookie\getExpires(), GuzzleHttp\Cookie\SetCookie\getMaxAge(), and GuzzleHttp\Cookie\SetCookie\setExpires().
GuzzleHttp\Cookie\SetCookie::__toString | ( | ) |
Definition at line 87 of file SetCookie.php.
|
static |
Create a new SetCookie object from a string
string | $cookie | Set-Cookie header string |
Definition at line 35 of file SetCookie.php.
Referenced by GuzzleHttp\Cookie\CookieJar\extractCookies().
GuzzleHttp\Cookie\SetCookie::getDiscard | ( | ) |
Get whether or not this is a session cookie
Definition at line 255 of file SetCookie.php.
Referenced by GuzzleHttp\Cookie\CookieJar\clearSessionCookies(), GuzzleHttp\Cookie\CookieJar\setCookie(), and GuzzleHttp\Cookie\CookieJar\shouldPersist().
GuzzleHttp\Cookie\SetCookie::getDomain | ( | ) |
Get the domain
Definition at line 153 of file SetCookie.php.
Referenced by GuzzleHttp\Cookie\SetCookie\matchesDomain(), GuzzleHttp\Cookie\CookieJar\setCookie(), and GuzzleHttp\Cookie\SetCookie\validate().
GuzzleHttp\Cookie\SetCookie::getExpires | ( | ) |
The UNIX timestamp when the cookie Expires
Definition at line 213 of file SetCookie.php.
Referenced by GuzzleHttp\Cookie\SetCookie\__construct(), GuzzleHttp\Cookie\CookieJar\clearSessionCookies(), GuzzleHttp\Cookie\SetCookie\isExpired(), GuzzleHttp\Cookie\CookieJar\setCookie(), and GuzzleHttp\Cookie\CookieJar\shouldPersist().
GuzzleHttp\Cookie\SetCookie::getHttpOnly | ( | ) |
Get whether or not this is an HTTP only cookie
Definition at line 275 of file SetCookie.php.
GuzzleHttp\Cookie\SetCookie::getMaxAge | ( | ) |
Maximum lifetime of the cookie in seconds
Definition at line 193 of file SetCookie.php.
Referenced by GuzzleHttp\Cookie\SetCookie\__construct().
GuzzleHttp\Cookie\SetCookie::getName | ( | ) |
Get the cookie name
Definition at line 113 of file SetCookie.php.
Referenced by GuzzleHttp\Cookie\CookieJar\clear(), GuzzleHttp\Cookie\CookieJar\setCookie(), and GuzzleHttp\Cookie\SetCookie\validate().
GuzzleHttp\Cookie\SetCookie::getPath | ( | ) |
Get the path
Definition at line 173 of file SetCookie.php.
Referenced by GuzzleHttp\Cookie\SetCookie\matchesPath(), and GuzzleHttp\Cookie\CookieJar\setCookie().
GuzzleHttp\Cookie\SetCookie::getSecure | ( | ) |
Get whether or not this is a secure cookie
Definition at line 235 of file SetCookie.php.
GuzzleHttp\Cookie\SetCookie::getValue | ( | ) |
Get the cookie value
Definition at line 133 of file SetCookie.php.
Referenced by GuzzleHttp\Cookie\CookieJar\setCookie(), and GuzzleHttp\Cookie\SetCookie\validate().
GuzzleHttp\Cookie\SetCookie::isExpired | ( | ) |
Check if the cookie is expired
Definition at line 362 of file SetCookie.php.
References GuzzleHttp\Cookie\SetCookie\getExpires().
GuzzleHttp\Cookie\SetCookie::matchesDomain | ( | $domain | ) |
Check if the cookie matches a domain value
string | $domain | Domain to check against |
Definition at line 337 of file SetCookie.php.
References GuzzleHttp\Cookie\SetCookie\getDomain().
Referenced by GuzzleHttp\Cookie\CookieJar\clear().
GuzzleHttp\Cookie\SetCookie::matchesPath | ( | $requestPath | ) |
Check if the cookie matches a path value.
A request-path path-matches a given cookie-path if at least one of the following conditions holds:
string | $requestPath | Path to check against |
Definition at line 307 of file SetCookie.php.
References $requestPath, and GuzzleHttp\Cookie\SetCookie\getPath().
Referenced by GuzzleHttp\Cookie\CookieJar\clear().
GuzzleHttp\Cookie\SetCookie::setDiscard | ( | $discard | ) |
Set whether or not this is a session cookie
bool | $discard | Set to true or false if this is a session cookie |
Definition at line 265 of file SetCookie.php.
GuzzleHttp\Cookie\SetCookie::setDomain | ( | $domain | ) |
GuzzleHttp\Cookie\SetCookie::setExpires | ( | $timestamp | ) |
Set the unix timestamp for which the cookie will expire
int | $timestamp | Unix timestamp |
Definition at line 223 of file SetCookie.php.
Referenced by GuzzleHttp\Cookie\SetCookie\__construct().
GuzzleHttp\Cookie\SetCookie::setHttpOnly | ( | $httpOnly | ) |
Set whether or not this is an HTTP only cookie
bool | $httpOnly | Set to true or false if this is HTTP only |
Definition at line 285 of file SetCookie.php.
GuzzleHttp\Cookie\SetCookie::setMaxAge | ( | $maxAge | ) |
Set the max-age of the cookie
int | $maxAge | Max age of the cookie in seconds |
Definition at line 203 of file SetCookie.php.
GuzzleHttp\Cookie\SetCookie::setName | ( | $name | ) |
GuzzleHttp\Cookie\SetCookie::setPath | ( | $path | ) |
Set the path of the cookie
string | $path | Path of the cookie |
Definition at line 183 of file SetCookie.php.
GuzzleHttp\Cookie\SetCookie::setSecure | ( | $secure | ) |
Set whether or not the cookie is secure
bool | $secure | Set to true or false if secure |
Definition at line 245 of file SetCookie.php.
GuzzleHttp\Cookie\SetCookie::setValue | ( | $value | ) |
Set the cookie value
string | $value | Cookie value |
Definition at line 143 of file SetCookie.php.
GuzzleHttp\Cookie\SetCookie::toArray | ( | ) |
Definition at line 103 of file SetCookie.php.
Referenced by GuzzleHttp\Cookie\CookieJar\toArray().
GuzzleHttp\Cookie\SetCookie::validate | ( | ) |
Check if the cookie is valid according to RFC 6265
Definition at line 372 of file SetCookie.php.
References GuzzleHttp\Cookie\SetCookie\getDomain(), GuzzleHttp\Cookie\SetCookie\getName(), and GuzzleHttp\Cookie\SetCookie\getValue().
Referenced by GuzzleHttp\Cookie\CookieJar\setCookie().