Since: 1.7.3

class Http extends Http

HTTP client class.

Methods

__construct(array|ArrayAccess $options = [], TransportInterface|null $transport = null)

Constructor.

Details

__construct(array|ArrayAccess $options = [], TransportInterface|null $transport = null)

Since: 1.7.3

Constructor.

Parameters

array|ArrayAccess $options

Client options array. If the registry contains any headers.* elements, these will be added to the request headers.

TransportInterface|null $transport

The HTTP transport object.

Exceptions

InvalidArgumentException