Interface for HTTP Header classes.

package Default

 Methods

Factory to generate a header object from a string

fromString(string $headerLine) : \Zend\Http\Header\HeaderInterface
Static
see
fluent This method is part of a fluent interface and will return the same instance

Parameters

$headerLine

string

Exceptions

\Zend\Http\Header\Exception\InvalidArgumentException If the header does not match RFC 2616 definition.

Returns

\Zend\Http\Header\HeaderInterface

Retrieve header name

getFieldName() : string

Returns

string

Retrieve header value

getFieldValue() : string

Returns

string

Cast to string

toString() : string

Returns in form of "NAME: VALUE"

Returns

string