Class CookieParser
Default Guzzle implementation of a Cookie parser
- Guzzle\Parser\Cookie\CookieParser implements Guzzle\Parser\Cookie\CookieParserInterface
public
array|boolean
|
#
parseCookie( string $cookie, string $host = null, string $path = null, boolean $decode = false )
Parse a cookie string as set in a Set-Cookie HTTP header and return an associative array of data. |
protected
string
|
#
getDefaultPath( string $path )
Get default cookie path according to RFC 6265 http://tools.ietf.org/search/rfc6265#section-5.1.4 Paths and Path-Match |
protected static
array
|
$cookieParts
Cookie part names to snake_case array values |
#
array(
'domain' => 'Domain',
'path' => 'Path',
'max_age' => 'Max-Age',
'expires' => 'Expires',
'version' => 'Version',
'secure' => 'Secure',
'port' => 'Port',
'discard' => 'Discard',
'comment' => 'Comment',
'comment_url' => 'Comment-Url',
'http_only' => 'HttpOnly'
)
|