HTTP standard message (Request/Response)

link http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4

 Methods

Allow PHP casting of this object

__toString() : string

Returns

string

Get message content

getContent() : mixed
Inherited

inherited_from \Zend\Stdlib\Message::getContent()

Returns

mixed

Return the header container responsible for headers

getHeaders() : \Zend\Http\Headers

Return the HTTP version for this request

getVersion() : string

Returns

string

Set message content

setContent(mixed $value) : \Zend\Stdlib\Message
Inherited

inherited_from \Zend\Stdlib\Message::setContent()

Parameters

$value

mixed

Returns

Provide an alternate Parameter Container implementation for headers in this object, (this is NOT the primary API for value setting, for that see getHeaders())

setHeaders(\Zend\Http\Headers $headers) : \Zend\Http\AbstractMessage

see \Zend\Http\getHeaders()

Parameters

Returns

Set the HTTP version for this object, one of 1.0 or 1.1 (AbstractMessage::VERSION_10, AbstractMessage::VERSION_11)

setVersion(string $version) : \Zend\Http\AbstractMessage

Parameters

$version

string

(Must be 1.0 or 1.1)

Exceptions

\Zend\Http\Exception\InvalidArgumentException

Returns

toString()

toString() : string
Inherited

inherited_from \Zend\Stdlib\Message::toString()

Returns

string

 Properties

 

$content

$content : string
Inherited

inherited_from \Zend\Stdlib\Message::$$content
 

$headers

$headers : \Zend\Http\Headers | null

   

$version

$version : string

 Constants

 

VERSION_10

VERSION_10 

 

VERSION_11

VERSION_11