| 程序包 | 说明 |
|---|---|
| org.apache.hc.client5.http.async |
HTTP client APIs based on the asynchronous, event driven I/O model.
|
| org.apache.hc.client5.http.classic.methods |
Common HTTP methods and message handlers for the classic I/O model.
|
| 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.io |
Connection management APIs based on the classic (blocking) I/O model.
|
| org.apache.hc.core5.concurrent |
Core concurrency component APIs.
|
| org.apache.hc.core5.http.nio.command |
Commands for HTTP transports based on asynchronous, event driven I/O model.
|
| org.apache.hc.core5.http2.impl.nio.bootstrap |
HTTP/2 capable requester and server bootstrap.
|
| org.apache.hc.core5.http2.nio.command |
HTTP/2 specific commands for HTTP/2 transport based
on asynchronous, event driven I/O model.
|
| org.apache.hc.core5.reactor |
Event driven network communication APIs and components loosely based on
Doug Lea's
reactor pattern.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Cancellable |
AsyncExecRuntime.acquireEndpoint(String id,
HttpRoute route,
Object state,
HttpClientContext context,
FutureCallback<AsyncExecRuntime> callback)
Initiates operation to acquire a connection endpoint.
|
Cancellable |
AsyncExecRuntime.connectEndpoint(HttpClientContext context,
FutureCallback<AsyncExecRuntime> callback)
Initiates operation to connect the local endpoint to the initial hop (connection
target in case of a direct route or to the first proxy hop in case of a route
via a proxy or multiple proxies).
|
Cancellable |
AsyncExecRuntime.execute(String id,
AsyncClientExchangeHandler exchangeHandler,
HttpClientContext context)
Initiates a message exchange using the given handler.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
HttpDelete
HTTP DELETE method.
|
class |
HttpGet
HTTP GET method.
|
class |
HttpHead
HTTP HEAD method.
|
class |
HttpOptions
HTTP OPTIONS method.
|
class |
HttpPatch
HTTP PATCH method.
|
class |
HttpPost
HTTP POST method.
|
class |
HttpPut
HTTP PUT method.
|
class |
HttpTrace
HTTP TRACE method.
|
class |
HttpUriRequestBase |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
HttpUriRequestBase.setDependency(Cancellable cancellable) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Cancellable |
Operations.cancellable(Future<?> future)
Creates a
Cancellable operation handle for an ongoing process
or operation represented by a Future. |
static Cancellable |
Operations.nonCancellable()
Creates a
Cancellable operation handle for an ongoing process
or operation that cannot be cancelled. |
| 限定符和类型 | 方法和说明 |
|---|---|
Cancellable |
MinimalHttpAsyncClient.execute(AsyncClientExchangeHandler exchangeHandler,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
HttpContext context) |
Cancellable |
MinimalH2AsyncClient.execute(AsyncClientExchangeHandler exchangeHandler,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
HttpContext context) |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
LeaseRequest
Represents a request for a
ConnectionEndpoint whose life cycle
is managed by a connection manager. |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
CancellableDependency
This interface represents
Cancellable object dependent on another
ongoing process or operation. |
| 限定符和类型 | 类和说明 |
|---|---|
class |
BasicFuture<T>
Basic implementation of the
Future interface. |
class |
CompletedFuture<T>
Immutable, completed future.
|
class |
ComplexCancellable
Cancellable that has a dependency on another Cancellable
process or operation. |
class |
ComplexFuture<T>
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ComplexCancellable.setDependency(Cancellable dependency) |
void |
CancellableDependency.setDependency(Cancellable cancellable)
Sets
Cancellable dependency on another ongoing process or
operation represented by Cancellable. |
void |
ComplexFuture.setDependency(Cancellable dependency) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
ExecutableCommand
Abstract executable command that may need to do some cleaning up
in case of an failure and also optionally may want to cancel
the associated HTTP message exchange through
CancellableDependency. |
class |
RequestExecutionCommand
Request execution command.
|
class |
ShutdownCommand
Shutdown command.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Cancellable |
H2MultiplexingRequester.execute(AsyncClientExchangeHandler exchangeHandler,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
Timeout timeout,
HttpContext context) |
Cancellable |
H2MultiplexingRequester.execute(AsyncClientExchangeHandler exchangeHandler,
Timeout timeout,
HttpContext context) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
PingCommand
HTTP/2 ping command.
|
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
Command
Abstract command
IOSession can act upon. |
Copyright © 2023. All rights reserved.