Content-Location Header

package Default

 Methods

Constructor

__construct(null|string $fieldName = null, null|string $fieldValue = null

Parameters

$fieldName

nullstring

$fieldValue

nullstring

Factory to generate a header object from a string

fromString(string $headerLine) : \Zend\Http\Header\GenericHeader
Static
static
inherited_from \Zend\Http\Header\HeaderInterface::fromString()

Parameters

$headerLine

string

Returns

\Zend\Http\Header\GenericHeader

Retrieve header field name

getFieldName() : string
inherited_from \Zend\Http\Header\HeaderInterface::getFieldName()

Returns

string

Retrieve header field value

getFieldValue() : string
inherited_from \Zend\Http\Header\HeaderInterface::getFieldValue()

Returns

string

Set header field name

setFieldName(string $fieldName) : \Zend\Http\Header\GenericHeader

Parameters

$fieldName

string

Exceptions

\Zend\Http\Header\Exception\InvalidArgumentException If the name does not match with RFC 2616 format.

Returns

\Zend\Http\Header\GenericHeader

Set header field value

setFieldValue(string $fieldValue) : \Zend\Http\Header\GenericHeader

Parameters

$fieldValue

string

Returns

\Zend\Http\Header\GenericHeader

Splits the header line in `name` and `value` parts.

splitHeaderLine(string $headerLine) : array<mixed,string>
Static

Parameters

$headerLine

string

Exceptions

\Zend\Http\Header\Exception\InvalidArgumentException If header does not match with the format ``name:value``

Returns

array<mixed,string>`name` in the first index and `value` in the second.

Cast to string as a well formed HTTP header line

toString() : string

Returns in form of "NAME: VALUE\r\n"

inherited_from \Zend\Http\Header\HeaderInterface::toString()

Returns

string

 Properties

 

$fieldName

$fieldName : string

Default

null
 

$fieldValue

$fieldValue : string

Default

null