HeadersPolicy Class
A simple policy that sends the given headers with the request.
This overwrite any headers already defined in the request.
- Inheritance
-
HeadersPolicy
Constructor
HeadersPolicy(headers: Mapping[str, str])
Parameters
- headers
Methods
| on_request |
Is executed before sending the request to next policy. |
on_request
Is executed before sending the request to next policy.
on_request(request: Request, **kwargs: Any) -> None
Parameters
- request
Required
Feedback
Submit and view feedback for