Open Journal Systems  3.3.0
Guzzle\Http\Message\Header\HeaderFactory Class Reference
Inheritance diagram for Guzzle\Http\Message\Header\HeaderFactory:
Guzzle\Http\Message\Header\HeaderFactoryInterface

Public Member Functions

 createHeader ($header, $value=null)
 

Protected Attributes

 $mapping
 

Detailed Description

Default header factory implementation

Definition at line 10 of file HeaderFactory.php.

Member Function Documentation

◆ createHeader()

Guzzle\Http\Message\Header\HeaderFactory::createHeader (   $header,
  $value = null 
)

Create a header from a header name and a single value

Parameters
string$headerName of the header to create
string$valueValue to set on the header
Returns
HeaderInterface

Implements Guzzle\Http\Message\Header\HeaderFactoryInterface.

Definition at line 21 of file HeaderFactory.php.

References Guzzle\Http\Message\Header\$header.

Field Documentation

◆ $mapping

array Guzzle\Http\Message\Header\HeaderFactory::$mapping
protected
Initial value:
= array(
'cache-control' => 'Guzzle\Http\Message\Header\CacheControl',
'link' => 'Guzzle\Http\Message\Header\Link',
)

Definition at line 16 of file HeaderFactory.php.


The documentation for this class was generated from the following file: