VERSION
VERSION = '2.0.8'
Default Guzzle web service client implementation.
$config : array
$description : \GuzzleHttp\Command\Guzzle\DescriptionInterface
$handlerStack : \GuzzleHttp\HandlerStack
$commandToRequestTransformer : callable
$responseToResultTransformer : callable
__construct(mixed $cosConfig) : mixed
The client constructor accepts an associative array of configuration options:
mixed | $cosConfig |
getCommand(mixed $name, array $params = []) : \GuzzleHttp\Command\CommandInterface
Create a command for an operation name.
Special keys may be set on the command to control how it behaves. Implementations SHOULD be able to utilize the following keys or throw an exception if unable.
mixed | $name | Name of the operation to use in the command |
array | $params |
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.
|
responseToResultTransformer(\Psr\Http\Message\ResponseInterface $response, \Psr\Http\Message\RequestInterface $request, \GuzzleHttp\Command\CommandInterface $command) : mixed
\Psr\Http\Message\ResponseInterface | $response | |
\Psr\Http\Message\RequestInterface | $request | |
\GuzzleHttp\Command\CommandInterface | $command |
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 |