Zend Framework  3.0
Static Public Member Functions | List of all members
Serializer Class Reference

Static Public Member Functions

static fromString ($message)
 Deserialize a response string to a response instance.
 
static fromStream (StreamInterface $stream)
 Parse a response from a stream.
 
static toString (ResponseInterface $response)
 Create a string representation of a response.
 

Additional Inherited Members

- Public Attributes inherited from AbstractSerializer
const CR = "\r"
 
const EOL = "\r\n"
 
const LF = "\n"
 
- Static Protected Member Functions inherited from AbstractSerializer
static getLine (StreamInterface $stream)
 Retrieve a single line from the stream.
 
static splitStream (StreamInterface $stream)
 Split the stream into headers and body content.
 
static serializeHeaders (array $headers)
 Serialize headers to string values.
 
static filterHeader ($header)
 Filter a header name to wordcase.
 

Member Function Documentation

static fromStream ( StreamInterface  $stream)
static

Parse a response from a stream.

Parameters
StreamInterface$stream
Returns
ResponseInterface
Exceptions
InvalidArgumentExceptionwhen the stream is not readable.
UnexpectedValueExceptionwhen errors occur parsing the message.
static fromString (   $message)
static

Deserialize a response string to a response instance.

Parameters
string$message
Returns
Response
Exceptions
UnexpectedValueExceptionwhen errors occur parsing the message.
static toString ( ResponseInterface  $response)
static

Create a string representation of a response.

Parameters
ResponseInterface$response
Returns
string