838. Class

838.1. Zend\Http\Header\Connection

Connection Header

838.1.1. Methods

838.1.1.1. fromString

fromString()

@param $headerLine

Return type:Connection
Throws :ExceptionInvalidArgumentException

838.1.1.2. setPersistent

setPersistent()

Set Connection header to define persistent connection

Parameters:bool
Return type:Connection

838.1.1.3. isPersistent

isPersistent()

Get whether this connection is persistent

Return type:bool

838.1.1.4. setValue

setValue()

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

Parameters:string
Return type:Connection

838.1.1.5. getFieldName

getFieldName()

Connection header name

Return type:string

838.1.1.6. getFieldValue

getFieldValue()

Connection header value

Return type:string

838.1.1.7. toString

toString()

Return header line

Return type:string

838.1.2. Constants

838.1.2.1. CONNECTION_CLOSE

838.1.2.2. CONNECTION_KEEP_ALIVE