public abstract class HttpClient extends Object
| Constructor and Description |
|---|
HttpClient() |
| Modifier and Type | Method and Description |
|---|---|
static HttpClient |
createDefault()
Create an instance of the default HttpClient type.
|
static HttpClient |
createDefault(HttpClientConfiguration configuration)
Create an instance of the default HttpClient type with the provided configuration.
|
abstract io.reactivex.Single<HttpResponse> |
sendRequestAsync(HttpRequest request)
Send the provided request asynchronously, applying any request policies provided to the HttpClient instance.
|
public abstract io.reactivex.Single<HttpResponse> sendRequestAsync(HttpRequest request)
request - The HTTP request to send.Single representing the HTTP response that will arrive asynchronously.public static HttpClient createDefault()
public static HttpClient createDefault(HttpClientConfiguration configuration)
configuration - The configuration to apply to the HttpClient./**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/