$httpClient
$httpClient : \GuzzleHttp\ClientInterface
Default Guzzle web service client implementation.
$httpClient : \GuzzleHttp\ClientInterface
$handlerStack : \GuzzleHttp\HandlerStack
$commandToRequestTransformer : callable
$responseToResultTransformer : callable
$config : array
$description : \GuzzleHttp\Command\Guzzle\DescriptionInterface
__construct(\GuzzleHttp\ClientInterface $client, \GuzzleHttp\Command\Guzzle\DescriptionInterface $description, callable $commandToRequestTransformer = null, callable $responseToResultTransformer = null, \GuzzleHttp\HandlerStack $commandHandlerStack = null, array $config = []) : mixed
The client constructor accepts an associative array of configuration options:
\GuzzleHttp\ClientInterface | $client | HTTP client to use. |
\GuzzleHttp\Command\Guzzle\DescriptionInterface | $description | Guzzle service description |
callable | $commandToRequestTransformer | |
callable | $responseToResultTransformer | |
\GuzzleHttp\HandlerStack | $commandHandlerStack | |
array | $config | Configuration options |
executeAsync(\GuzzleHttp\Command\CommandInterface $command) : \GuzzleHttp\Promise\PromiseInterface
Execute a single command asynchronously
\GuzzleHttp\Command\CommandInterface | $command | Command to execute |
A Promise that resolves to a Result.
executeAll(mixed $commands, array $options = []) : array
Executes multiple commands concurrently using a fixed pool size.
mixed | $commands | Array or iterator that contains CommandInterface objects to execute with the client. |
array | $options | Associative array of options to apply.
|
executeAllAsync(mixed $commands, array $options = []) : \GuzzleHttp\Promise\PromiseInterface
Executes multiple commands concurrently and asynchronously using a fixed pool size.
mixed | $commands | Array or iterator that contains CommandInterface objects to execute with the client. |
array | $options | Associative array of options to apply.
|
__call(string $name, array $args) : \GuzzleHttp\Command\ResultInterface|\GuzzleHttp\Promise\PromiseInterface
Creates and executes a command for an operation by name.
string | $name | Name of the command to execute. |
array | $args | Arguments to pass to the getCommand method. |
transformResponseToResult(\Psr\Http\Message\ResponseInterface $response, \Psr\Http\Message\RequestInterface $request, \GuzzleHttp\Command\CommandInterface $command) : \GuzzleHttp\Command\ResultInterface
Transforms a Response object, also using data from the Request object, into a Result object.
\Psr\Http\Message\ResponseInterface | $response | |
\Psr\Http\Message\RequestInterface | $request | |
\GuzzleHttp\Command\CommandInterface | $command |