Package com.azure.core.http.policy
Package containing HttpPipelinePolicy interface and its implementations.
-
Interface Summary Interface Description AfterRetryPolicyProvider Implementing classes are automatically added as policies after the retry policy.BeforeRetryPolicyProvider Implementing classes are automatically added as policies before the retry policy.HttpPipelinePolicy A policy within theHttpPipeline
.HttpPolicyProvider Implementing classes automatically provide policies.HttpRequestLogger Manages logging HTTP requests inHttpLoggingPolicy
.HttpResponseLogger Manages logging HTTP responses inHttpLoggingPolicy
.RedirectStrategy The interface for determining theredirect strategy
used inRedirectPolicy
.RetryStrategy The interface for determining the retry strategy used inRetryPolicy
. -
Class Summary Class Description AddDatePolicy The pipeline policy that adds a "Date" header in RFC 1123 format when sending an HTTP request.AddHeadersFromContextPolicy The pipeline policy that override or addHttpHeaders
inHttpRequest
by reading values fromContext
with key 'azure-http-headers-key'.AddHeadersPolicy The pipeline policy that adds a particular set of headers to HTTP requests.AzureKeyCredentialPolicy Pipeline policy that uses anAzureKeyCredential
to set the authorization key for a request.AzureSasCredentialPolicy Pipeline policy that uses anAzureSasCredential
to set the shared access signature for a request.BearerTokenAuthenticationPolicy The pipeline policy that applies a token credential to an HTTP request with "Bearer" scheme.CookiePolicy The pipeline policy that which stores cookies based on the response "Set-Cookie" header and adds cookies to requests.DefaultRedirectStrategy A default implementation ofRedirectStrategy
that uses the provided maximum retry attempts, header name to look up redirect url value for, http methods and a known set of redirect status response codes (301, 302, 307, 308) to determine if request should be redirected.ExponentialBackoff A truncated exponential backoff implementation ofRetryStrategy
that has a delay duration that exponentially increases with each retry attempt until an upper bound is reached after which every retry attempt is delayed by the provided max delay duration.FixedDelay A fixed-delay implementation ofRetryStrategy
that has a fixed delay duration between each retry attempt.HostPolicy The pipeline policy that adds the given host to each HttpRequest.HttpLoggingPolicy The pipeline policy that handles logging of HTTP requests and responses.HttpLogOptions The log configurations for HTTP messages.HttpPolicyProviders This class handles adding SPI plug-able policies to a pipeline automatically.HttpRequestLoggingContext Options class containing information available during HTTP request logging.HttpResponseLoggingContext Options class containing information available during HTTP response logging.PortPolicy The pipeline policy that adds a given port to eachHttpRequest
.ProtocolPolicy The pipeline policy that adds a given protocol to each HttpRequest.RedirectPolicy RequestIdPolicy The pipeline policy that puts a UUID in the request header.RetryPolicy A pipeline policy that retries when a recoverable HTTP error or exception occurs.TimeoutPolicy The pipeline policy that limits the time allowed between sending a request and receiving the response.UserAgentPolicy Pipeline policy that adds "User-Agent" header to a request. -
Enum Summary Enum Description HttpLogDetailLevel The level of detail to log on HTTP messages.