Class Guzzle\Parser\Cookie\CookieParser

InheritanceGuzzle\Parser\Cookie\CookieParser
ImplementsGuzzle\Parser\Cookie\CookieParserInterface

Default Guzzle implementation of a Cookie parser

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$cookieParts array Cookie part names to snake_case array values Guzzle\Parser\Cookie\CookieParser

Public Methods

Hide inherited methods

MethodDescriptionDefined By
parseCookie() Guzzle\Parser\Cookie\CookieParser

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
getDefaultPath() Get default cookie path according to RFC 6265 http://tools.ietf.org/search/rfc6265#section-5.1.4 Paths and Path-Match Guzzle\Parser\Cookie\CookieParser

Property Details

$cookieParts protected static property

Cookie part names to snake_case array values

protected static array $cookieParts = ['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']

Method Details

getDefaultPath() protected method

Get default cookie path according to RFC 6265 http://tools.ietf.org/search/rfc6265#section-5.1.4 Paths and Path-Match

protected string getDefaultPath ( $path )
$path string

Request uri-path

parseCookie() public method

public void parseCookie ( $cookie, $host null, $path null, $decode false )
$cookie
$host
$path
$decode