| 程序包 | 说明 |
|---|---|
| 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.nio |
Client connection management functions based the asynchronous
connection management APIs.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static MinimalHttpAsyncClient |
HttpAsyncClients.createMinimal(AsyncClientConnectionManager connManager)
Creates
MinimalHttpAsyncClient instance optimized for
HTTP/1.1 and HTTP/2 message transport without advanced HTTP protocol
functionality. |
static MinimalHttpAsyncClient |
HttpAsyncClients.createMinimal(H2Config h2Config,
Http1Config h1Config,
IOReactorConfig ioReactorConfig,
AsyncClientConnectionManager connmgr)
Creates
MinimalHttpAsyncClient instance optimized for
HTTP/1.1 and HTTP/2 message transport without advanced HTTP protocol
functionality. |
static MinimalHttpAsyncClient |
HttpAsyncClients.createMinimal(HttpVersionPolicy versionPolicy,
H2Config h2Config,
Http1Config h1Config,
IOReactorConfig ioReactorConfig,
AsyncClientConnectionManager connmgr)
|
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setConnectionManager(AsyncClientConnectionManager connManager)
Assigns
AsyncClientConnectionManager instance. |
| 限定符和类型 | 类和说明 |
|---|---|
class |
PoolingAsyncClientConnectionManager
PoolingAsyncClientConnectionManager maintains a pool of non-blocking
HttpConnections and is able to service
connection requests from multiple execution threads. |
Copyright © 2023. All rights reserved.