Google API Core Client - Class FixedHeaderMiddleware (1.36.0)

Reference documentation and code samples for the Google API Core Client class FixedHeaderMiddleware.

Middleware to add fixed headers to an API call.

Namespace

Google \ ApiCore \ Middleware

Methods

__construct

Parameters
Name Description
nextHandler callable
headers array
overrideUserHeaders bool

__invoke

Modify or observe the API call request and response.

The returned value must include the result of the next MiddlewareInterface invocation in the chain.

Parameters
Name Description
call Google\ApiCore\Call
options array