[go: up one dir, main page]

Module policies

Module policies 

Source
Expand description

HTTP pipeline policies.

Structs§

BearerTokenAuthorizationPolicy
Authentication policy for a bearer token.
ClientRequestIdPolicy
Adds a x-ms-client-request-id (or custom) header to each request.
PublicApiInstrumentationInformation
Information about the public API being instrumented.
RetryHeaders
Headers that may be used to determine how long to wait before retrying a request. The boolean indicates if the header is a standard Retry-After header (true) or a service-specific header (false).
RetryPolicyCount
A wrapper around a retry count to be used in the context of a retry policy.
TransportPolicy
The final pipeline policy that defines the HTTP transport.
UserAgentPolicy
Sets the User-Agent header with useful information in a typical format for Azure SDKs.

Traits§

Policy
A pipeline policy.
RetryPolicy
A retry policy.

Functions§

create_public_api_span
Creates a span for the public API instrumentation policy.
get_retry_after
Get the duration to delay between retry attempts, provided by the headers from the response.

Type Aliases§

PolicyResult
A specialized Result type for policies.