Connection Header

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

 Methods

fromString()

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

string

 Properties

 

Value of this header

$value : string

 Constants

 

CONNECTION_CLOSE

CONNECTION_CLOSE 

 

CONNECTION_KEEP_ALIVE

CONNECTION_KEEP_ALIVE