HeaderInterface
in
Interface for HTTP Header classes.
Table of Contents
Methods
- fromString() : static
- Factory to generate a header object from a string
- getFieldName() : string
- Retrieve header name
- getFieldValue() : string
- Retrieve header value
- toString() : string
- Cast to string
Methods
fromString()
Factory to generate a header object from a string
public
static fromString(string $headerLine) : static
Parameters
- $headerLine : string
Tags
Return values
staticgetFieldName()
Retrieve header name
public
getFieldName() : string
Return values
stringgetFieldValue()
Retrieve header value
public
getFieldValue() : string
Return values
stringtoString()
Cast to string
public
toString() : string
Returns in form of "NAME: VALUE"