|
Open Monograph Press
3.3.0
|
Public Member Functions | |
| addHeader ($header, $value) | |
| addHeaders (array $headers) | |
| getHeader ($header) | |
| getHeaderLines () | |
| getHeaders () | |
| getParams () | |
| getRawHeaders () | |
| hasHeader ($header) | |
| removeHeader ($header) | |
| setHeader ($header, $value) | |
| setHeaders (array $headers) | |
Request and response message interface
Definition at line 8 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/MessageInterface.php.
| Guzzle\Http\Message\MessageInterface::addHeader | ( | $header, | |
| $value | |||
| ) |
Add a header to an existing collection of headers.
| string | $header | Header name to add |
| string | $value | Value of the header |
Implemented in Guzzle\Http\Message\AbstractMessage.
| Guzzle\Http\Message\MessageInterface::addHeaders | ( | array | $headers | ) |
Add and merge in an array of HTTP headers.
| array | $headers | Associative array of header data. |
Implemented in Guzzle\Http\Message\AbstractMessage.
| Guzzle\Http\Message\MessageInterface::getHeader | ( | $header | ) |
Retrieve an HTTP header by name. Performs a case-insensitive search of all headers.
| string | $header | Header to retrieve. |
Implemented in Guzzle\Http\Message\AbstractMessage.
| Guzzle\Http\Message\MessageInterface::getHeaderLines | ( | ) |
Get an array of message header lines (e.g. ["Host: example.com", ...])
Implemented in Guzzle\Http\Message\AbstractMessage.
| Guzzle\Http\Message\MessageInterface::getHeaders | ( | ) |
Get all headers as a collection
Implemented in Guzzle\Http\Message\AbstractMessage.
| Guzzle\Http\Message\MessageInterface::getParams | ( | ) |
Get application and plugin specific parameters set on the message.
Implemented in Guzzle\Http\Message\AbstractMessage.
Referenced by Guzzle\Http\RedirectPlugin\createRedirectRequest(), and Guzzle\Http\RedirectPlugin\prepareRedirection().
| Guzzle\Http\Message\MessageInterface::getRawHeaders | ( | ) |
Get the raw message headers as a string
Implemented in Guzzle\Http\Message\Response, and Guzzle\Http\Message\Request.
| Guzzle\Http\Message\MessageInterface::hasHeader | ( | $header | ) |
Check if the specified header is present.
| string | $header | The header to check. |
Implemented in Guzzle\Http\Message\AbstractMessage.
| Guzzle\Http\Message\MessageInterface::removeHeader | ( | $header | ) |
Remove a specific HTTP header.
| string | $header | HTTP header to remove. |
Implemented in Guzzle\Http\Message\AbstractMessage.
| Guzzle\Http\Message\MessageInterface::setHeader | ( | $header, | |
| $value | |||
| ) |
Set an HTTP header and overwrite any existing value for the header
| string | $header | Name of the header to set. |
| mixed | $value | Value to set. |
Implemented in Guzzle\Http\Message\AbstractMessage.
| Guzzle\Http\Message\MessageInterface::setHeaders | ( | array | $headers | ) |
Overwrite all HTTP headers with the supplied array of headers
| array | $headers | Associative array of header data. |
Implemented in Guzzle\Http\Message\AbstractMessage.