HTTP standard message (Request/Response)

link http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4
package Default
inherited_from \Zend\Stdlib\Message

 Methods

Allow PHP casting of this object

__toString() : string

Returns

string

Get message content

getContent() : mixed
Inherited
inherited_from \Zend\Stdlib\MessageInterface::getContent()

Returns

mixed

Return the header container responsible for headers

getHeaders() : \Zend\Http\Headers

Returns

\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\MessageInterface::setContent()

Parameters

$value

mixed

Returns

\Zend\Stdlib\Message

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

Parameters

$headers

\Zend\Http\Headers

Returns

\Zend\Http\AbstractMessage

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

\Zend\Http\AbstractMessage

toString()

toString() : string
Inherited

Returns

string

 Properties

 

$content

$content : string

Default

''
 

$headers

$headers : \Zend\Http\Headers | null

Default

null
   

$version

$version : string

Default

self::VERSION_11

 Constants

 

VERSION_10

VERSION_10 = '1.0' 
 

VERSION_11

VERSION_11 = '1.1'