FixedHeaderMiddleware
class FixedHeaderMiddleware implements MiddlewareInterface (View source)
Middleware to add fixed headers to an API call.
Methods
__construct(callable $nextHandler, array $headers, bool $overrideUserHeaders = false)
No description
Details
__construct(callable $nextHandler, array $headers, bool $overrideUserHeaders = false)
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.