public interface HttpClient
| Modifier and Type | Method and Description |
|---|---|
static HttpClient |
createDefault()
Create default HttpClient instance.
|
HttpClient |
port(int port)
Set the port that client should connect to.
|
HttpClient |
proxy(Supplier<ProxyOptions> proxyOptions)
Apply the provided proxy configuration to the HttpClient.
|
reactor.core.publisher.Mono<HttpResponse> |
send(HttpRequest request)
Send the provided request asynchronously.
|
HttpClient |
wiretap(boolean enableWiretap)
Apply or remove a wire logger configuration.
|
reactor.core.publisher.Mono<HttpResponse> send(HttpRequest request)
request - The HTTP request to sendMono that emits response asynchronouslystatic HttpClient createDefault()
HttpClient proxy(Supplier<ProxyOptions> proxyOptions)
proxyOptions - the proxy configuration supplierHttpClient wiretap(boolean enableWiretap)
enableWiretap - wiretap configHttpClient port(int port)
port - the portCopyright © 2019 Microsoft Corporation. All rights reserved.