public function MessageInterface::getHeaders

Get all headers as a collection

Parameters

bool $asObjects Set to true to retrieve a collection of Header objects:

Return value

Collection Returns a {@see Collection} of all headers

1 method overrides MessageInterface::getHeaders()
AbstractMessage::getHeaders in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/AbstractMessage.php
Get all headers as a collection

File

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

Class

MessageInterface
Request and response message interface

Namespace

Guzzle\Http\Message

Code

public function getHeaders($asObjects = false);