| Package | Description |
|---|---|
| com.microsoft.rest.v2.http |
This package contains the HTTP abstractions between the AnnotationParser's RestProxy and whatever
HTTP client we choose to use.
|
| Modifier and Type | Method and Description |
|---|---|
HttpPipelineBuilder |
HttpPipelineBuilder.withCookiePolicy()
Add a RequestPolicy which stores and adds cookies across multiple
requests and responses.
|
HttpPipelineBuilder |
HttpPipelineBuilder.withCredentialsPolicy(ServiceClientCredentials credentials)
Add a RequestPolicy which applies the given ServiceClientCredentials to
outgoing requests.
|
HttpPipelineBuilder |
HttpPipelineBuilder.withDecodingPolicy()
Adds a RequestPolicy which decodes the headers and body of incoming
responses.
|
HttpPipelineBuilder |
HttpPipelineBuilder.withHostPolicy(String host)
Adds a RequestPolicy which sets the host on all outgoing requests.
|
HttpPipelineBuilder |
HttpPipelineBuilder.withHttpClient(HttpClient httpClient)
Set the HttpClient that will be used by HttpPipelines that are created by this Builder.
|
HttpPipelineBuilder |
HttpPipelineBuilder.withHttpLoggingPolicy(HttpLogDetailLevel level)
Adds a RequestPolicy which logs all HTTP traffic using SLF4J.
|
HttpPipelineBuilder |
HttpPipelineBuilder.withHttpLoggingPolicy(HttpLogDetailLevel level,
boolean prettyPrintJSON)
Adds a RequestPolicy which logs all HTTP traffic using SLF4J.
|
HttpPipelineBuilder |
HttpPipelineBuilder.withLogger(HttpPipelineLogger logger)
Set the Logger that will be used for each RequestPolicy within the created HttpPipeline.
|
HttpPipelineBuilder |
HttpPipelineBuilder.withProxyAuthenticationPolicy(String username,
String password)
Adds a RequestPolicy which adds proxy authentication headers to
outgoing requests.
|
HttpPipelineBuilder |
HttpPipelineBuilder.withRequestIdPolicy()
Adds a RequestPolicy which adds a per-request ID to the
"x-ms-client-request-id" header to outgoing requests.
|
HttpPipelineBuilder |
HttpPipelineBuilder.withRequestPolicies(RequestPolicyFactory... requestPolicyFactories)
Add the provided RequestPolicy factories to this HttpPipeline builder.
|
HttpPipelineBuilder |
HttpPipelineBuilder.withRequestPolicy(int index,
RequestPolicyFactory requestPolicyFactory)
Add the provided RequestPolicy factory to this HttpPipeline builder
at the provided index in the pipeline.
|
HttpPipelineBuilder |
HttpPipelineBuilder.withRequestPolicy(RequestPolicyFactory requestPolicyFactory)
Add the provided RequestPolicy factory to this HttpPipeline builder.
|
HttpPipelineBuilder |
HttpPipelineBuilder.withRetryPolicy(int maxRetries,
long delayTime,
TimeUnit timeUnit)
Adds a RequestPolicy which retries a failed request up to the given
number of times.
|
HttpPipelineBuilder |
HttpPipelineBuilder.withTimeoutPolicy(long timeout,
TimeUnit unit)
Adds a RequestPolicy which fails a request if it does not complete by
the time the given interval elapses.
|
HttpPipelineBuilder |
HttpPipelineBuilder.withUserAgentPolicy(String userAgent)
Add a RequestPolicy that will add the provided UserAgent header to each
outgoing HttpRequest.
|
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/