| 程序包 | 说明 |
|---|---|
| org.apache.hc.client5.http |
Client component APIs common to all client transports
such as connection route information and resolution
as well as common HTTP method definitions and
exception classes.
|
| org.apache.hc.client5.http.impl | |
| org.apache.hc.client5.http.impl.async |
Asynchronous HTTP client API implementation that supports both
HTTP/2 and HTTP/1.1 transport.
|
| org.apache.hc.client5.http.impl.classic |
Classic HTTP client API implementation that supports HTTP/1.1 transport
only.
|
| org.apache.hc.client5.http.impl.io |
Client connection management functions based the classic
connection management APIs.
|
| org.apache.hc.client5.http.impl.nio |
Client connection management functions based the asynchronous
connection management APIs.
|
| org.apache.hc.client5.http.protocol |
HTTP protocol interceptors that enable advanced functionality
such as HTTP state management and authentication state caching.
|
| org.apache.hc.core5.http.config |
Core configuration APIs.
|
| 限定符和类型 | 方法和说明 |
|---|---|
ContextBuilder |
ContextBuilder.useAuthSchemeRegistry(Lookup<AuthSchemeFactory> authSchemeRegistry) |
ContextBuilder |
ContextBuilder.useCookieSpecRegistry(Lookup<CookieSpecFactory> cookieSpecRegistry) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Lookup<CookieSpecFactory> |
CookieSpecSupport.createDefault()
Creates the default registry, using the default public suffix matcher.
|
static Lookup<CookieSpecFactory> |
CookieSpecSupport.createDefault(PublicSuffixMatcher publicSuffixMatcher)
Creates the default registry with the provided public suffix matcher
|
| 限定符和类型 | 方法和说明 |
|---|---|
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setDefaultAuthSchemeRegistry(Lookup<AuthSchemeFactory> authSchemeRegistry)
Assigns default
AuthScheme registry which will
be used for request execution if not explicitly set in the client execution
context. |
H2AsyncClientBuilder |
H2AsyncClientBuilder.setDefaultAuthSchemeRegistry(Lookup<AuthSchemeFactory> authSchemeRegistry)
Assigns default
AuthScheme registry which will
be used for request execution if not explicitly set in the client execution
context. |
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setDefaultCookieSpecRegistry(Lookup<CookieSpecFactory> cookieSpecRegistry)
Assigns default
CookieSpec registry
which will be used for request execution if not explicitly set in the client
execution context. |
H2AsyncClientBuilder |
H2AsyncClientBuilder.setDefaultCookieSpecRegistry(Lookup<CookieSpecFactory> cookieSpecRegistry)
Assigns default
CookieSpec registry
which will be used for request execution if not explicitly set in the client
execution context. |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpClientBuilder |
HttpClientBuilder.setDefaultAuthSchemeRegistry(Lookup<AuthSchemeFactory> authSchemeRegistry)
Assigns default
AuthScheme registry which will
be used for request execution if not explicitly set in the client execution
context. |
HttpClientBuilder |
HttpClientBuilder.setDefaultCookieSpecRegistry(Lookup<CookieSpecFactory> cookieSpecRegistry)
Assigns default
CookieSpec registry which will
be used for request execution if not explicitly set in the client execution
context. |
| 构造器和说明 |
|---|
ContentCompressionExec(List<String> acceptEncoding,
Lookup<InputStreamFactory> decoderRegistry,
boolean ignoreUnknown) |
| 构造器和说明 |
|---|
BasicHttpClientConnectionManager(Lookup<ConnectionSocketFactory> socketFactoryRegistry) |
BasicHttpClientConnectionManager(Lookup<ConnectionSocketFactory> socketFactoryRegistry,
HttpConnectionFactory<ManagedHttpClientConnection> connFactory) |
BasicHttpClientConnectionManager(Lookup<ConnectionSocketFactory> socketFactoryRegistry,
HttpConnectionFactory<ManagedHttpClientConnection> connFactory,
SchemePortResolver schemePortResolver,
DnsResolver dnsResolver) |
DefaultHttpClientConnectionOperator(Lookup<ConnectionSocketFactory> socketFactoryRegistry,
SchemePortResolver schemePortResolver,
DnsResolver dnsResolver) |
| 构造器和说明 |
|---|
PoolingAsyncClientConnectionManager(Lookup<TlsStrategy> tlsStrategyLookup) |
PoolingAsyncClientConnectionManager(Lookup<TlsStrategy> tlsStrategyLookup,
PoolConcurrencyPolicy poolConcurrencyPolicy,
PoolReusePolicy poolReusePolicy,
TimeValue timeToLive) |
PoolingAsyncClientConnectionManager(Lookup<TlsStrategy> tlsStrategyLookup,
PoolConcurrencyPolicy poolConcurrencyPolicy,
PoolReusePolicy poolReusePolicy,
TimeValue timeToLive,
SchemePortResolver schemePortResolver,
DnsResolver dnsResolver) |
PoolingAsyncClientConnectionManager(Lookup<TlsStrategy> tlsStrategyLookup,
PoolConcurrencyPolicy poolConcurrencyPolicy,
TimeValue timeToLive) |
| 限定符和类型 | 方法和说明 |
|---|---|
Lookup<AuthSchemeFactory> |
HttpClientContext.getAuthSchemeRegistry() |
Lookup<CookieSpecFactory> |
HttpClientContext.getCookieSpecRegistry() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
HttpClientContext.setAuthSchemeRegistry(Lookup<AuthSchemeFactory> lookup) |
void |
HttpClientContext.setCookieSpecRegistry(Lookup<CookieSpecFactory> lookup) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
Registry<I>
Generic registry of items keyed by low-case string ID.
|
Copyright © 2023. All rights reserved.