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 strategyused 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 addHttpHeadersinHttpRequestby reading values fromContextwith key 'azure-http-headers-key'.AddHeadersPolicy The pipeline policy that adds a particular set of headers to HTTP requests.AzureKeyCredentialPolicy Pipeline policy that uses anAzureKeyCredentialto set the authorization key for a request.AzureSasCredentialPolicy Pipeline policy that uses anAzureSasCredentialto 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 ofRedirectStrategythat 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 ofRetryStrategythat 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.ExponentialBackoffOptions The configuration for exponential backoff 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 ofRetryStrategythat has a fixed delay duration between each retry attempt.FixedDelayOptions The configuration for a fixed-delay retry 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.RetryOptions The configuration for retries.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.