Abstract Class Guzzle\Http\Message\AbstractMessage

InheritanceGuzzle\Http\Message\AbstractMessage
ImplementsGuzzle\Http\Message\MessageInterface
SubclassesGuzzle\Http\Message\EntityEnclosingRequest, Guzzle\Http\Message\Request, Guzzle\Http\Message\Response

Abstract HTTP request/response message

Property Details

$headerFactory protected property
$headers protected property

HTTP header collection

protected array $headers null
$params protected property

Custom message parameters that are extendable by plugins

$protocol protected property

Message protocol

protected string $protocol 'HTTP'
$protocolVersion protected property

HTTP protocol version of the message

protected string $protocolVersion '1.1'

Method Details

__construct() public method

public void __construct ( )
addCacheControlDirective() public method

public void addCacheControlDirective ( $directive, $value true )
$directive
$value
addHeader() public method

public void addHeader ( $header, $value )
$header
$value
addHeaders() public method

public void addHeaders ( array $headers )
$headers
getCacheControlDirective() public method

public void getCacheControlDirective ( $directive )
$directive
getHeader() public method

public void getHeader ( $header )
$header
getHeaderLines() public method

public void getHeaderLines ( )
getHeaders() public method

public void getHeaders ( )
getParams() public method

public void getParams ( )
getTokenizedHeader() public method

public void getTokenizedHeader ( $header, $token ';' )
$header
$token
hasCacheControlDirective() public method

public void hasCacheControlDirective ( $directive )
$directive
hasHeader() public method

public void hasHeader ( $header )
$header
removeCacheControlDirective() public method

public void removeCacheControlDirective ( $directive )
$directive
removeHeader() public method

public void removeHeader ( $header )
$header
setHeader() public method

public void setHeader ( $header, $value )
$header
$value
setHeaderFactory() public method

Set the header factory to use to create headers

public self setHeaderFactory ( Guzzle\Http\Message\Header\HeaderFactoryInterface $factory )
$factory Guzzle\Http\Message\Header\HeaderFactoryInterface
setHeaders() public method

public void setHeaders ( array $headers )
$headers
setTokenizedHeader() public method

public void setTokenizedHeader ( $header, $data, $token ';' )
$header
$data
$token