Connection Header

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

 Methods

Factory to generate a header object from a string

fromString($headerLine) : \Zend\Http\Header\Connection

Connection header name

getFieldName() : string

Returns

string

Connection header value

getFieldValue() : string

Returns

string

Get whether this connection is persistent

isPersistent() : bool

Returns

bool

Set Connection header to define persistent connection

setPersistent(bool $flag) : \Zend\Http\Header\Connection

Parameters

$flag

bool

Returns

Set arbitrary header value RFC allows any token as value, 'close' and 'keep-alive' are commonly used

setValue(string $value) : \Zend\Http\Header\Connection

Parameters

$value

string

Returns

Return header line

toString() : string

Returns in form of "NAME: VALUE"

Returns

string

 Properties

 

Value of this header

$value : string

 Constants

 

CONNECTION_CLOSE

CONNECTION_CLOSE 

 

CONNECTION_KEEP_ALIVE

CONNECTION_KEEP_ALIVE