NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Class HeaderFactory

Default header factory implementation

  Guzzle\Http\Message\Header\HeaderFactory implements Guzzle\Http\Message\Header\HeaderFactoryInterface

Namespace: Guzzle\Http\Message\Header
Located at Guzzle/Http/Message/Header/HeaderFactory.php

## Methods summary

- `public` `createHeader ( string $header, string $value = null )`

  Create a header from a header name and a single value

## Methods detail

# `public `Guzzle\Http\Message\Header\HeaderInterface``
`createHeader( string $header, string $value = null )`

Create a header from a header name and a single value

#### Parameters

$header
  `string`
  $header Name of the header to create
$value
  `string`
  $value Value to set on the header

#### Returns

``Guzzle\Http\Message\Header\HeaderInterface``

#### Implementation of

`Guzzle\Http\Message\Header\HeaderFactoryInterface::createHeader()`

### Magic methods summary

## Properties summary

`protected array` | $mapping | #