policies Package
Classes
| AsyncBearerTokenCredentialPolicy |
Adds a bearer token Authorization header to requests. |
| AsyncHTTPPolicy |
An async HTTP policy ABC. Use with an asynchronous pipeline. |
| AsyncRetryPolicy |
Async flavor of the retry policy. The async retry policy in the pipeline can be configured directly, or tweaked on a per-call basis. |
| BearerTokenCredentialPolicy |
Adds a bearer token Authorization header to requests. |
| ContentDecodePolicy |
Policy for decoding unstreamed response content. |
| DistributedHttpTracingPolicy |
The policy to create tracing spans for API calls. |
| HTTPPolicy |
An HTTP policy ABC. Use with a synchronous pipeline. |
| HeadersPolicy |
A simple policy that sends the given headers with the request. This will overwrite any headers already defined in the request. Headers can be configured up front, where any custom headers will be applied to all outgoing operations, and additional headers can also be added dynamically per operation. |
| NetworkTraceLoggingPolicy |
The logging policy in the pipeline is used to output HTTP network trace to the configured logger. This accepts both global configuration, and per-request level with "enable_http_logger" |
| ProxyPolicy |
A proxy policy. Dictionary mapping protocol or protocol and host to the URL of the proxy to be used on each Request. |
| RequestHistory |
A container for an attempted request and the applicable response. This is used to document requests/responses that resulted in retried requests. |
| RetryPolicy |
A retry policy. The retry policy in the pipeline can be configured directly, or tweaked on a per-call basis. |
| SansIOHTTPPolicy |
Represents a sans I/O policy. SansIOHTTPPolicy is a base class for policies that only modify or mutate a request based on the HTTP specification, and do not depend on the specifics of any particular transport. SansIOHTTPPolicy subclasses will function in either a Pipeline or an AsyncPipeline, and can act either before the request is done, or after. You can optionally make these methods coroutines (or return awaitable objects) but they will then be tied to AsyncPipeline usage. |
| ServiceKeyCredentialPolicy |
Adds a key header for the provided credential. |
| UserAgentPolicy |
User-Agent Policy. Allows custom values to be added to the User-Agent header. |
Enums
| RetryMode |
Enum for retry modes. |