Zend\Http\Header\Connection
Connection Header
Synopsis
class Connection
implements
HeaderInterface
{
- // constants
- const CONNECTION_CLOSE = 'close';
- const CONNECTION_KEEP_ALIVE = 'keep-alive';
- // members
- protected string $value;
- // methods
- public static Connection fromString()
- public Connection setPersistent()
- public bool isPersistent()
- public Connection setValue()
- public string getFieldName()
- public string getFieldValue()
- public string toString()
Hierarchy
Implements
Constants
Name | Value |
---|---|
CONNECTION_CLOSE | 'close' |
CONNECTION_KEEP_ALIVE | 'keep-alive' |
Members
protected
- $value
—
string
Value of this header
Methods
public
- fromString()
- getFieldName() — Connection header name
- getFieldValue() — Connection header value
- isPersistent() — Get whether this connection is persistent
- setPersistent() — Set Connection header to define persistent connection
- setValue() — Set arbitrary header value RFC allows any token as value, 'close' and 'keep-alive' are commonly used
- toString() — Return header line