| 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.
|
| com.microsoft.rest.v2.policy |
Code related to creating proxy implementations of interfaces that have been generated from
Swagger specifications.
|
| Modifier and Type | Class and Description |
|---|---|
class |
NettyClient
An HttpClient that is implemented using Netty.
|
| Modifier and Type | Method and Description |
|---|---|
HttpClient |
NettyClient.Factory.create(HttpClientConfiguration configuration) |
HttpClient |
HttpClientFactory.create(HttpClientConfiguration configuration)
Creates an HttpClient with the given Configuration.
|
static HttpClient |
HttpClient.createDefault()
Create an instance of the default HttpClient type.
|
static HttpClient |
HttpClient.createDefault(HttpClientConfiguration configuration)
Create an instance of the default HttpClient type with the provided configuration.
|
| 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.
|
HttpPipelineOptions |
HttpPipelineOptions.withHttpClient(HttpClient httpClient)
Configure the HttpClient that will be used for the created HttpPipeline.
|
HttpPipelineBuilder |
HttpPipelineBuilder.withHttpClient(HttpClient httpClient)
Set the HttpClient that will be used by HttpPipelines that are created by this Builder.
|
| Modifier and Type | Method and Description |
|---|---|
HttpClient |
HttpClientRequestPolicyAdapter.httpClient()
Get the HttpClient that this RequestPolicy uses to send HttpRequests.
|
| Constructor and Description |
|---|
HttpClientRequestPolicyAdapter(HttpClient httpClient)
Create a new HttpClientRequestPolicyAdapter that will use the provided HttpClient to send
HTTP requests.
|
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/