Package | Description |
---|---|
com.azure.core.http |
Package containing HTTP abstractions between the AnnotationParser, RestProxy, and HTTP client.
|
com.azure.core.http.policy |
Package containing HttpPipelinePolicy interface and its implementations.
|
Modifier and Type | Method and Description |
---|---|
HttpPipelinePolicy |
HttpPipeline.getPolicy(int index)
Get the policy at the passed index in the pipeline.
|
Modifier and Type | Method and Description |
---|---|
HttpPipelineBuilder |
HttpPipelineBuilder.policies(HttpPipelinePolicy... policies)
Adds
policies to the set of policies that the pipeline will use when sending
requests. |
Modifier and Type | Class and Description |
---|---|
class |
AddDatePolicy
The pipeline policy that adds a "Date" header in RFC 1123 format when sending an HTTP request.
|
class |
AddHeadersFromContextPolicy
The pipeline policy that override or add
HttpHeaders in HttpRequest by reading values from
Context with key 'azure-http-headers-key'. |
class |
AddHeadersPolicy
The pipeline policy that adds a particular set of headers to HTTP requests.
|
class |
AzureKeyCredentialPolicy
Pipeline policy that uses an
AzureKeyCredential to set the authorization key for a request. |
class |
AzureSasCredentialPolicy
Pipeline policy that uses an
AzureSasCredential to set the shared access signature for a request. |
class |
BearerTokenAuthenticationPolicy
The pipeline policy that applies a token credential to an HTTP request
with "Bearer" scheme.
|
class |
CookiePolicy
The pipeline policy that which stores cookies based on the response "Set-Cookie" header and adds cookies to requests.
|
class |
HostPolicy
The pipeline policy that adds the given host to each HttpRequest.
|
class |
HttpLoggingPolicy
The pipeline policy that handles logging of HTTP requests and responses.
|
class |
PortPolicy
The pipeline policy that adds a given port to each
HttpRequest . |
class |
ProtocolPolicy
The pipeline policy that adds a given protocol to each HttpRequest.
|
class |
RedirectPolicy
|
class |
RequestIdPolicy
The pipeline policy that puts a UUID in the request header.
|
class |
RetryPolicy
A pipeline policy that retries when a recoverable HTTP error or exception occurs.
|
class |
TimeoutPolicy
The pipeline policy that limits the time allowed between sending a request and receiving the response.
|
class |
UserAgentPolicy
Pipeline policy that adds "User-Agent" header to a request.
|
Modifier and Type | Method and Description |
---|---|
HttpPipelinePolicy |
HttpPolicyProvider.create()
Creates the policy.
|
Copyright © 2021 Microsoft Corporation. All rights reserved.