public class HttpClientRequestPolicyAdapter extends Object implements RequestPolicy
| Constructor and Description |
|---|
HttpClientRequestPolicyAdapter(HttpClient httpClient)
Create a new HttpClientRequestPolicyAdapter that will use the provided HttpClient to send
HTTP requests.
|
| Modifier and Type | Method and Description |
|---|---|
HttpClient |
httpClient()
Get the HttpClient that this RequestPolicy uses to send HttpRequests.
|
io.reactivex.Single<HttpResponse> |
sendAsync(HttpRequest request)
Sends an HTTP request as an asynchronous operation.
|
public HttpClientRequestPolicyAdapter(HttpClient httpClient)
httpClient - The HttpClient to use.public HttpClient httpClient()
public io.reactivex.Single<HttpResponse> sendAsync(HttpRequest request)
RequestPolicysendAsync in interface RequestPolicyrequest - The HTTP request message to send./**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/