OperationsMiddleware
class OperationsMiddleware implements MiddlewareInterface (View source)
Middleware which wraps the response in an OperationResponse object.
Methods
__construct(callable $nextHandler, $operationsClient, array $descriptor)
No description
Details
__construct(callable $nextHandler, $operationsClient, array $descriptor)
No description
PromiseInterface|ClientStream|ServerStream|BidiStream
__invoke(Call $call, array $options)
Modify or observe the API call request and response.
The returned value must include the result of the next MiddlewareInterface invocation in the chain.