Class Connection

Summary

Fully Qualified Name: Zend\Http\Header\Connection
Implements: HeaderInterface

Description

Connection Header

Methods

Name Description Defined By
fromString() Connection
getFieldName() Connection header name Connection
getFieldValue() Connection header value Connection
isPersistent() Get whether this connection is persistent Connection
setPersistent() Set Connection header to define persistent connection Connection
setValue() Set arbitrary header value RFC allows any token as value, 'close' and 'keep-alive' are commonly used Connection
toString() Return header line Connection

Method Details

fromString()

Parameter Name Type Description
$headerLine string

Returns: \Connection

getFieldName()

Connection header name

Returns: string

getFieldValue()

Connection header value

Returns: string

isPersistent()

Get whether this connection is persistent

Returns: bool

setPersistent()

Set Connection header to define persistent connection

Parameter Name Type Description
$flag bool

Returns: \Connection

setValue()

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

Parameter Name Type Description
$value string

Returns: \Connection

toString()

Return header line

Returns: string

Top