| Fully Qualified Name: | Zend\Http\Header\Connection |
| Implements: | HeaderInterface |
Connection Header
| 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 |
| Parameter Name | Type | Description |
|---|---|---|
| $headerLine | string |
Returns: \Connection
Connection header name
Returns: string
Connection header value
Returns: string
Get whether this connection is persistent
Returns: bool
Set Connection header to define persistent connection
| Parameter Name | Type | Description |
|---|---|---|
| $flag | bool |
Returns: \Connection
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
Return header line
Returns: string