| Package | Description |
|---|---|
| com.microsoft.rest.v2 |
The package contains the runtime classes required for AutoRest generated
clients to compile and function.
|
| com.microsoft.rest.v2.http |
This package contains the HTTP abstractions between the AnnotationParser's RestProxy and whatever
HTTP client we choose to use.
|
| com.microsoft.rest.v2.policy |
Code related to creating proxy implementations of interfaces that have been generated from
Swagger specifications.
|
| Modifier and Type | Method and Description |
|---|---|
static HttpPipeline |
RestProxy.createDefaultPipeline(RequestPolicyFactory credentialsPolicy)
Create the default HttpPipeline.
|
| Modifier and Type | Method and Description |
|---|---|
static HttpPipeline |
HttpPipeline.build(HttpClient httpClient,
RequestPolicyFactory... requestPolicyFactories)
Build a new HttpPipeline that will use the provided HttpClient and RequestPolicy factories.
|
static HttpPipeline |
HttpPipeline.build(HttpPipelineOptions pipelineOptions,
RequestPolicyFactory... requestPolicyFactories)
Build a new HttpPipeline that will use the provided HttpClient and RequestPolicy factories.
|
static HttpPipeline |
HttpPipeline.build(RequestPolicyFactory... requestPolicyFactories)
Build a new HttpPipeline that will use the provided RequestPolicy factories.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
static HttpPipeline |
HttpPipeline.build(HttpPipelineOptions pipelineOptions,
Iterable<RequestPolicyFactory> requestPolicyFactories)
Build a new HttpPipeline that will use the provided HttpClient and RequestPolicy factories.
|
static HttpPipeline |
HttpPipeline.build(Iterable<RequestPolicyFactory> requestPolicyFactories)
Build a new HttpPipeline that will use the provided RequestPolicy factories.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AddDatePolicyFactory
Creates a RequestPolicy which adds a Date header in RFC 1123 format when sending an HTTP request.
|
class |
AddHeadersPolicyFactory
Creates a RequestPolicy which adds a particular set of headers to HTTP requests.
|
class |
CookiePolicyFactory
Creates a RequestPolicy which stores cookies based on the response Set-Cookie header and adds cookies to requests.
|
class |
CredentialsPolicyFactory
Creates a policy which adds credentials from ServiceClientCredentials to a request.
|
class |
DecodingPolicyFactory
Creates a RequestPolicy which decodes the response body and headers.
|
class |
HostPolicyFactory
Creates a RequestPolicy that adds the provided host to each HttpRequest.
|
class |
HttpLoggingPolicyFactory
Creates a RequestPolicy that handles logging of HTTP requests and responses.
|
class |
PortPolicyFactory
Creates a RequestPolicy that adds the provided port to each HttpRequest.
|
class |
ProtocolPolicyFactory
Creates a RequestPolicy that adds the provided protocol/scheme to each HttpRequest.
|
class |
ProxyAuthenticationPolicyFactory
Creates a RequestPolicy that adds basic proxy authentication to outgoing HTTP requests.
|
class |
RequestIdPolicyFactory
Creates a policy which puts a UUID in the request header.
|
class |
RetryPolicyFactory
Creates a RequestPolicy which retries when a recoverable HTTP error occurs.
|
class |
TimeoutPolicyFactory
Creates a RequestPolicy that limits the time allowed between sending a request and receiving the response.
|
class |
UserAgentPolicyFactory
Adds a 'User-Agent' header to a request.
|
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/