public function MessageInterface::setTokenizedHeader

Set a tokenized header on the request that implodes a Collection of data into a string separated by a token.

Parameters

string $header Header to set:

array|Collection $data Header data:

string $token Token delimiter:

Return value

MessageInterface

Throws

InvalidArgumentException if data is not an array or Collection

1 method overrides MessageInterface::setTokenizedHeader()
AbstractMessage::setTokenizedHeader in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/AbstractMessage.php
Set a tokenized header on the request that implodes a Collection of data into a string separated by a token.

File

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

Class

MessageInterface
Request and response message interface

Namespace

Guzzle\Http\Message

Code

public function setTokenizedHeader($header, $data, $token = ';');