interface HttpClientAdapterInterface (View source)

Methods

request(string $method, string $location, array $headers = null, string $body = null)

Performs an HTTP request on the specified location.

setAuthentication(string $username, string $password)

Sets the username and password used to authenticate to the server.

mixed
getClient()

Returns the underlying client instance wrapped by the adapter.

Details

BindingResultInterface request(string $method, string $location, array $headers = null, string $body = null)

Performs an HTTP request on the specified location.

Parameters

string $method
string $location
array $headers
string $body

Return Value

BindingResultInterface

setAuthentication(string $username, string $password)

Sets the username and password used to authenticate to the server.

Parameters

string $username Username
string $password Password

mixed getClient()

Returns the underlying client instance wrapped by the adapter.

Return Value

mixed