public function MessageInterface::addHeader

Add a header to an existing collection of headers.

Parameters

string $header Header name to add:

string $value Value of the header:

Return value

MessageInterface

1 method overrides MessageInterface::addHeader()
AbstractMessage::addHeader in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/AbstractMessage.php
Add a header to an existing collection of headers.

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/MessageInterface.php, line 28

Class

MessageInterface
Request and response message interface

Namespace

Guzzle\Http\Message

Code

public function addHeader($header, $value);