| 程序包 | 说明 |
|---|---|
| org.apache.hc.client5.http.async |
HTTP client APIs based on the asynchronous, event driven I/O model.
|
| org.apache.hc.client5.http.async.methods |
Common HTTP methods and message handlers for the asynchronous I/O model.
|
| 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.nio |
Connection management APIs based on the asynchronous I/O model.
|
| org.apache.hc.core5.http.impl.bootstrap |
HTTP/1.1 requester and server bootstrap.
|
| org.apache.hc.core5.http.nio |
Core HTTP transport APIs based on the asynchronous, event driven I/O model.
|
| org.apache.hc.core5.http.nio.command |
Commands for HTTP transports based on asynchronous, event driven I/O model.
|
| org.apache.hc.core5.http.nio.support |
Support classes for the asynchronous I/O model.
|
| org.apache.hc.core5.http2.impl.nio |
Default implementation of HTTP/2 transport based on
the asynchronous (non-blocking) I/O model.
|
| org.apache.hc.core5.http2.impl.nio.bootstrap |
HTTP/2 capable requester and server bootstrap.
|
| org.apache.hc.core5.http2.nio.support |
Support classes for HTTP/2 asynchronous transport.
|
| 限定符和类型 | 方法和说明 |
|---|---|
<T> Future<T> |
HttpAsyncClient.execute(AsyncRequestProducer requestProducer,
AsyncResponseConsumer<T> responseConsumer,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
HttpContext context,
FutureCallback<T> callback)
Initiates asynchronous HTTP request execution using the given context.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractBinPushConsumer
Abstract push response consumer that processes response body data as an octet stream.
|
class |
AbstractCharPushConsumer
Abstract push response consumer that processes response body data as a character stream.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract <T> Future<T> |
CloseableHttpAsyncClient.doExecute(HttpHost target,
AsyncRequestProducer requestProducer,
AsyncResponseConsumer<T> responseConsumer,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
HttpContext context,
FutureCallback<T> callback) |
Cancellable |
MinimalHttpAsyncClient.execute(AsyncClientExchangeHandler exchangeHandler,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
HttpContext context) |
Cancellable |
MinimalH2AsyncClient.execute(AsyncClientExchangeHandler exchangeHandler,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
HttpContext context) |
<T> Future<T> |
CloseableHttpAsyncClient.execute(AsyncRequestProducer requestProducer,
AsyncResponseConsumer<T> responseConsumer,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
HttpContext context,
FutureCallback<T> callback) |
<T> Future<T> |
CloseableHttpAsyncClient.execute(HttpHost target,
AsyncRequestProducer requestProducer,
AsyncResponseConsumer<T> responseConsumer,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
HttpContext context,
FutureCallback<T> callback) |
abstract void |
CloseableHttpAsyncClient.register(String hostname,
String uriPattern,
Supplier<AsyncPushConsumer> supplier) |
void |
CloseableHttpAsyncClient.register(String uriPattern,
Supplier<AsyncPushConsumer> supplier) |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract void |
AsyncConnectionEndpoint.execute(String id,
AsyncClientExchangeHandler exchangeHandler,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
HttpContext context)
Initiates a message exchange using the given handler.
|
<T> Future<T> |
AsyncConnectionEndpoint.execute(String id,
AsyncRequestProducer requestProducer,
AsyncResponseConsumer<T> responseConsumer,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
FutureCallback<T> callback)
Initiates message exchange using the given request producer and response consumer.
|
<T> Future<T> |
AsyncConnectionEndpoint.execute(String id,
AsyncRequestProducer requestProducer,
AsyncResponseConsumer<T> responseConsumer,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
HttpContext context,
FutureCallback<T> callback)
Initiates message exchange using the given request producer and response consumer.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
HttpAsyncRequester.execute(AsyncClientExchangeHandler exchangeHandler,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
Timeout timeout,
HttpContext executeContext) |
<T> Future<T> |
HttpAsyncRequester.execute(AsyncRequestProducer requestProducer,
AsyncResponseConsumer<T> responseConsumer,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
Timeout timeout,
HttpContext context,
FutureCallback<T> callback) |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract void |
AsyncClientEndpoint.execute(AsyncClientExchangeHandler exchangeHandler,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
HttpContext context)
Initiates a message exchange using the given handler.
|
<T> Future<T> |
AsyncClientEndpoint.execute(AsyncRequestProducer requestProducer,
AsyncResponseConsumer<T> responseConsumer,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
HttpContext context,
FutureCallback<T> callback)
Initiates message exchange using the given request producer and response consumer.
|
| 限定符和类型 | 方法和说明 |
|---|---|
HandlerFactory<AsyncPushConsumer> |
RequestExecutionCommand.getPushHandlerFactory() |
| 构造器和说明 |
|---|
RequestExecutionCommand(AsyncClientExchangeHandler exchangeHandler,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
CancellableDependency cancellableDependency,
HttpContext context) |
RequestExecutionCommand(AsyncClientExchangeHandler exchangeHandler,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
HttpContext context) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractAsyncPushHandler<T>
Abstract push response handler.
|
| 构造器和说明 |
|---|
ClientH2StreamMultiplexer(ProtocolIOSession ioSession,
FrameFactory frameFactory,
HttpProcessor httpProcessor,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
H2Config h2Config,
CharCodingConfig charCodingConfig,
H2StreamListener streamListener) |
ClientH2StreamMultiplexer(ProtocolIOSession ioSession,
HttpProcessor httpProcessor,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
H2Config h2Config,
CharCodingConfig charCodingConfig) |
ClientH2StreamMultiplexerFactory(HttpProcessor httpProcessor,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
H2Config h2Config,
CharCodingConfig charCodingConfig,
H2StreamListener streamListener) |
ClientH2StreamMultiplexerFactory(HttpProcessor httpProcessor,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
H2StreamListener streamListener) |
| 限定符和类型 | 方法和说明 |
|---|---|
Cancellable |
H2MultiplexingRequester.execute(AsyncClientExchangeHandler exchangeHandler,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
Timeout timeout,
HttpContext context) |
<T> Future<T> |
H2MultiplexingRequester.execute(AsyncRequestProducer requestProducer,
AsyncResponseConsumer<T> responseConsumer,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
Timeout timeout,
HttpContext context,
FutureCallback<T> callback) |
H2MultiplexingRequesterBootstrap |
H2MultiplexingRequesterBootstrap.register(String uriPattern,
Supplier<AsyncPushConsumer> supplier)
Registers the given
AsyncPushConsumer Supplier as a default handler for URIs
matching the given pattern. |
H2RequesterBootstrap |
H2RequesterBootstrap.register(String uriPattern,
Supplier<AsyncPushConsumer> supplier)
Registers the given
AsyncPushConsumer Supplier as a default handler for URIs
matching the given pattern. |
H2MultiplexingRequesterBootstrap |
H2MultiplexingRequesterBootstrap.registerVirtual(String hostname,
String uriPattern,
Supplier<AsyncPushConsumer> supplier)
Registers the given
AsyncPushConsumer Supplier as a handler for URIs
matching the given host and the pattern. |
H2RequesterBootstrap |
H2RequesterBootstrap.registerVirtual(String hostname,
String uriPattern,
Supplier<AsyncPushConsumer> supplier)
Registers the given
AsyncPushConsumer Supplier as a handler for URIs
matching the given host and the pattern. |
| 限定符和类型 | 方法和说明 |
|---|---|
AsyncPushConsumer |
DefaultAsyncPushConsumerFactory.create(HttpRequest request,
HttpContext context) |
| 构造器和说明 |
|---|
DefaultAsyncPushConsumerFactory(HttpRequestMapper<Supplier<AsyncPushConsumer>> mapper) |
Copyright © 2023. All rights reserved.