public interface HttpClient
Modifier and Type | Method and Description |
---|---|
static HttpClient |
createDefault()
Creates a new
HttpClient instance. |
static HttpClient |
createDefault(HttpClientOptions clientOptions)
Creates a new
HttpClient instance. |
Mono<HttpResponse> |
send(HttpRequest request)
Send the provided request asynchronously.
|
default Mono<HttpResponse> |
send(HttpRequest request,
Context context)
Sends the provided request asynchronously with contextual information.
|
Mono<HttpResponse> send(HttpRequest request)
request
- The HTTP request to send.Mono
that emits the response asynchronously.default Mono<HttpResponse> send(HttpRequest request, Context context)
request
- The HTTP request to send.context
- Contextual information about the request.Mono
that emits the response asynchronously.static HttpClient createDefault()
HttpClient
instance.HttpClient
instance.static HttpClient createDefault(HttpClientOptions clientOptions)
HttpClient
instance.clientOptions
- Configuration options applied to the created HttpClient
.HttpClient
instance.Copyright © 2021 Microsoft Corporation. All rights reserved.