Interface HeaderInterface

Summary

Fully Qualified Name: Laminas\Http\Header\HeaderInterface

Description

Interface for HTTP Header classes.

Methods

Name Description Defined By
fromString() Factory to generate a header object from a string HeaderInterface
getFieldName() Retrieve header name HeaderInterface
getFieldValue() Retrieve header value HeaderInterface
toString() Cast to string HeaderInterface

Method Details

fromString()

Factory to generate a header object from a string

Parameter Name Type Description
$headerLine string

Returns: static

getFieldName()

Retrieve header name

Returns: string

getFieldValue()

Retrieve header value

Returns: string

toString()

Cast to string

Returns in form of "NAME: VALUE"

Returns: string

Top