Package | Description |
---|---|
com.azure.core.http |
Package containing HTTP abstractions between the AnnotationParser, RestProxy, and HTTP client.
|
com.azure.core.util |
Package containing core utility classes.
|
Modifier and Type | Method and Description |
---|---|
static HttpClient |
HttpClient.createDefault(HttpClientOptions clientOptions)
Creates a new
HttpClient instance. |
default HttpClient |
HttpClientProvider.createInstance(HttpClientOptions clientOptions)
Creates a new instance of the
HttpClient that this HttpClientProvider is configured to create. |
Modifier and Type | Method and Description |
---|---|
HttpClientOptions |
HttpClientOptions.readTimeout(Duration readTimeout)
Sets the read timeout duration used when reading the server response.
|
HttpClientOptions |
HttpClientOptions.responseTimeout(Duration responseTimeout)
Sets the response timeout duration used when waiting for a server to reply.
|
HttpClientOptions |
HttpClientOptions.setApplicationId(String applicationId) |
HttpClientOptions |
HttpClientOptions.setConfiguration(Configuration configuration)
Sets the configuration store that the
HttpClient will use. |
HttpClientOptions |
HttpClientOptions.setConnectionIdleTimeout(Duration connectionIdleTimeout)
Sets the duration of time before an idle connection.
|
HttpClientOptions |
HttpClientOptions.setConnectTimeout(Duration connectTimeout)
Sets the connection timeout for a request to be sent.
|
HttpClientOptions |
HttpClientOptions.setHeaders(Iterable<Header> headers) |
HttpClientOptions |
HttpClientOptions.setMaximumConnectionPoolSize(Integer maximumConnectionPoolSize)
Sets the maximum connection pool size used by the underlying HTTP client.
|
HttpClientOptions |
HttpClientOptions.setProxyOptions(ProxyOptions proxyOptions)
Sets the
proxy options that the HttpClient will use. |
HttpClientOptions |
HttpClientOptions.setReadTimeout(Duration readTimeout)
Sets the read timeout duration used when reading the server response.
|
HttpClientOptions |
HttpClientOptions.setResponseTimeout(Duration responseTimeout)
Sets the response timeout duration used when waiting for a server to reply.
|
HttpClientOptions |
HttpClientOptions.setWriteTimeout(Duration writeTimeout)
Sets the writing timeout for a request to be sent.
|
Copyright © 2021 Microsoft Corporation. All rights reserved.