Zend\Http\AbstractMessage
HTTP standard message (Request/Response)
Synopsis
class AbstractMessage
extends Message
{
- // constants
- const VERSION_10 = '1.0';
- const VERSION_11 = '1.1';
- // methods
- public AbstractMessage setVersion()
- public string getVersion()
- public AbstractMessage setHeaders()
- public Headers getHeaders()
- public string __toString()
- // Inherited methods from Message
- public Message setMetadata()
- public mixed getMetadata()
- public Message setContent()
- public mixed getContent()
- public string toString()
Hierarchy
Extends
Extended by
Constants
Name | Value |
---|---|
VERSION_10 | '1.0' |
VERSION_11 | '1.1' |
Members
protected
- $content — string
- $headers — Zend\Http\Headers|null
- $metadata — array
- $version — string
Methods
public
- __toString() — Allow PHP casting of this object
- getHeaders() — Return the header container responsible for headers
- getVersion() — Return the HTTP version for this request
- setHeaders() — Provide an alternate Parameter Container implementation for headers in this object, (this is NOT the primary API for value setting, for that see getHeaders())
- setVersion() — Set the HTTP version for this object, one of 1.0 or 1.1 (AbstractMessage::VERSION_10, AbstractMessage::VERSION_11)
Inherited from Zend\Stdlib\Message
public
- getContent() — Get message content
- getMetadata() — Retrieve all metadata or a single metadatum as specified by key
- setContent() — Set message content
- setMetadata() — Set message metadata
- toString()