Documentation

Plugin

Table of Contents

Interfaces

Journal
Records history of HTTP calls.

Classes

AddHostPlugin
Add schema, host and port to a request. Can be set to overwrite the schema and host if desired.
AddPathPlugin
Prepend a base path to the request URI. Useful for base API URLs like http://domain.com/api.
AuthenticationPlugin
Send an authenticated request.
BaseUriPlugin
Combines the AddHostPlugin and AddPathPlugin.
ContentLengthPlugin
Allow to set the correct content length header on the request or to transfer it as a chunk if not possible.
ContentTypePlugin
Allow to set the correct content type header on the request automatically only if it is not set.
CookiePlugin
Handle request cookies.
DecoderPlugin
Allow to decode response body with a chunk, deflate, compress or gzip encoding.
ErrorPlugin
Throw exception when the response of a request is not acceptable.
HeaderAppendPlugin
Append headers to the request.
HeaderDefaultsPlugin
Set header to default value if it does not exist.
HeaderRemovePlugin
Removes headers from the request.
HeaderSetPlugin
Set headers on the request.
HistoryPlugin
Record HTTP calls.
QueryDefaultsPlugin
Set query to default value if it does not exist.
RedirectPlugin
Follow redirections.
RequestMatcherPlugin
Apply a delegated plugin based on a request match.
RequestSeekableBodyPlugin
Allow body used in request to be always seekable.
ResponseSeekableBodyPlugin
Allow body used in response to be always seekable.
RetryPlugin
Retry the request if an exception is thrown.

Traits

VersionBridgePlugin
A plugin that helps you migrate from php-http/client-common 1.x to 2.x. This will also help you to support PHP5 at the same time you support 2.x.

        
On this page

Search results