| 程序包 | 说明 |
|---|---|
| org.apache.hc.client5.http.classic |
HTTP client APIs based on the classic (blocking) 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.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.io |
Connection management APIs based on the classic (blocking) I/O model.
|
| org.apache.hc.core5.http.impl.bootstrap |
HTTP/1.1 requester and server bootstrap.
|
| org.apache.hc.core5.http.impl.io |
Default implementation of HTTP/1.1 transport based on the classic
(blocking) I/O model.
|
| org.apache.hc.core5.http.io |
Core HTTP transport APIs based on the classic (blocking) I/O model.
|
| org.apache.hc.core5.http.io.support |
Support classes for the classic (blocking) I/O model.
|
| org.apache.hc.core5.http.message |
Core HTTP message components, message element parser
and writer APIs and their default implementations.
|
| 限定符和类型 | 字段和说明 |
|---|---|
ClassicHttpRequest |
ExecChain.Scope.originalRequest |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpResponse |
HttpClient.execute(ClassicHttpRequest request)
已过时。
It is strongly recommended to use execute methods with
HttpClientResponseHandler
such as HttpClient.execute(ClassicHttpRequest, HttpClientResponseHandler) in order
to ensure automatic resource deallocation by the client.
For special cases one can still use HttpClient.executeOpen(HttpHost, ClassicHttpRequest, HttpContext)
to keep the response object open after the request execution. |
ClassicHttpResponse |
ExecChainHandler.execute(ClassicHttpRequest request,
ExecChain.Scope scope,
ExecChain chain)
Executes the actual HTTP request.
|
<T> T |
HttpClient.execute(ClassicHttpRequest request,
HttpClientResponseHandler<? extends T> responseHandler)
Executes HTTP request using the default context and processes the
response using the given response handler.
|
HttpResponse |
HttpClient.execute(ClassicHttpRequest request,
HttpContext context)
已过时。
It is strongly recommended to use execute methods with
HttpClientResponseHandler
such as HttpClient.execute(ClassicHttpRequest, HttpContext, HttpClientResponseHandler) in order
to ensure automatic resource deallocation by the client.
For special cases one can still use HttpClient.executeOpen(HttpHost, ClassicHttpRequest, HttpContext)
to keep the response object open after the request execution. |
<T> T |
HttpClient.execute(ClassicHttpRequest request,
HttpContext context,
HttpClientResponseHandler<? extends T> responseHandler)
Executes HTTP request using the given context and processes the
response using the given response handler.
|
ClassicHttpResponse |
HttpClient.execute(HttpHost target,
ClassicHttpRequest request)
已过时。
It is strongly recommended to use execute methods with
HttpClientResponseHandler
such as HttpClient.execute(HttpHost, ClassicHttpRequest, HttpClientResponseHandler) in order
to ensure automatic resource deallocation by the client.
For special cases one can still use HttpClient.executeOpen(HttpHost, ClassicHttpRequest, HttpContext)
to keep the response object open after the request execution. |
<T> T |
HttpClient.execute(HttpHost target,
ClassicHttpRequest request,
HttpClientResponseHandler<? extends T> responseHandler)
Executes HTTP request to the target using the default context and
processes the response using the given response handler.
|
HttpResponse |
HttpClient.execute(HttpHost target,
ClassicHttpRequest request,
HttpContext context)
已过时。
It is strongly recommended to use execute methods with
HttpClientResponseHandler
such as HttpClient.execute(HttpHost, ClassicHttpRequest, HttpContext, HttpClientResponseHandler) in order
to ensure automatic resource deallocation by the client.
For special cases one can still use HttpClient.executeOpen(HttpHost, ClassicHttpRequest, HttpContext)
to keep the response object open after the request execution. |
<T> T |
HttpClient.execute(HttpHost target,
ClassicHttpRequest request,
HttpContext context,
HttpClientResponseHandler<? extends T> responseHandler)
Executes HTTP request to the target using the given context and
processes the response using the given response handler.
|
ClassicHttpResponse |
ExecRuntime.execute(String id,
ClassicHttpRequest request,
HttpClientContext context)
Executes HTTP request using the given context.
|
default ClassicHttpResponse |
HttpClient.executeOpen(HttpHost target,
ClassicHttpRequest request,
HttpContext context)
Executes the request and opens the response stream using the given context.
|
ClassicHttpResponse |
ExecChain.proceed(ClassicHttpRequest request,
ExecChain.Scope scope) |
| 构造器和说明 |
|---|
Scope(String exchangeId,
HttpRoute route,
ClassicHttpRequest originalRequest,
ExecRuntime execRuntime,
HttpClientContext clientContext) |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
HttpUriRequest
Extended version of the
ClassicHttpRequest interface that provides
convenience methods to access request properties such as request URI
and method type. |
| 限定符和类型 | 类和说明 |
|---|---|
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 |
| 限定符和类型 | 方法和说明 |
|---|---|
ClassicHttpRequest |
ClassicRequestCopier.copy(ClassicHttpRequest original)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
ClassicHttpRequest |
ClassicRequestCopier.copy(ClassicHttpRequest original)
已过时。
|
protected abstract CloseableHttpResponse |
CloseableHttpClient.doExecute(HttpHost target,
ClassicHttpRequest request,
HttpContext context) |
protected CloseableHttpResponse |
MinimalHttpClient.doExecute(HttpHost target,
ClassicHttpRequest request,
HttpContext context) |
CloseableHttpResponse |
CloseableHttpClient.execute(ClassicHttpRequest request)
已过时。
It is strongly recommended to use execute methods with
HttpClientResponseHandler
such as CloseableHttpClient.execute(ClassicHttpRequest, HttpClientResponseHandler) in order
to ensure automatic resource deallocation by the client.
For special cases one can still use HttpClient.executeOpen(HttpHost, ClassicHttpRequest, HttpContext)
to keep the response object open after the request execution. |
ClassicHttpResponse |
MainClientExec.execute(ClassicHttpRequest request,
ExecChain.Scope scope,
ExecChain chain) |
ClassicHttpResponse |
HttpRequestRetryExec.execute(ClassicHttpRequest request,
ExecChain.Scope scope,
ExecChain chain) |
ClassicHttpResponse |
ConnectExec.execute(ClassicHttpRequest request,
ExecChain.Scope scope,
ExecChain chain) |
ClassicHttpResponse |
ContentCompressionExec.execute(ClassicHttpRequest request,
ExecChain.Scope scope,
ExecChain chain) |
ClassicHttpResponse |
BackoffStrategyExec.execute(ClassicHttpRequest request,
ExecChain.Scope scope,
ExecChain chain) |
ClassicHttpResponse |
ProtocolExec.execute(ClassicHttpRequest userRequest,
ExecChain.Scope scope,
ExecChain chain) |
ClassicHttpResponse |
RedirectExec.execute(ClassicHttpRequest request,
ExecChain.Scope scope,
ExecChain chain) |
<T> T |
CloseableHttpClient.execute(ClassicHttpRequest request,
HttpClientResponseHandler<? extends T> responseHandler)
Executes a request using the default context and processes the
response using the given response handler.
|
CloseableHttpResponse |
CloseableHttpClient.execute(ClassicHttpRequest request,
HttpContext context)
已过时。
It is strongly recommended to use execute methods with
HttpClientResponseHandler
such as CloseableHttpClient.execute(ClassicHttpRequest, HttpContext, HttpClientResponseHandler) in order
to ensure automatic resource deallocation by the client.
For special cases one can still use HttpClient.executeOpen(HttpHost, ClassicHttpRequest, HttpContext)
to keep the response object open after the request execution. |
<T> T |
CloseableHttpClient.execute(ClassicHttpRequest request,
HttpContext context,
HttpClientResponseHandler<? extends T> responseHandler)
Executes a request using the default context and processes the
response using the given response handler.
|
<T> FutureTask<T> |
FutureRequestExecutionService.execute(ClassicHttpRequest request,
HttpContext context,
HttpClientResponseHandler<T> HttpClientResponseHandler)
Schedule a request for execution.
|
<T> FutureTask<T> |
FutureRequestExecutionService.execute(ClassicHttpRequest request,
HttpContext context,
HttpClientResponseHandler<T> HttpClientResponseHandler,
FutureCallback<T> callback)
Schedule a request for execution.
|
CloseableHttpResponse |
CloseableHttpClient.execute(HttpHost target,
ClassicHttpRequest request)
已过时。
It is strongly recommended to use execute methods with
HttpClientResponseHandler
such as CloseableHttpClient.execute(HttpHost, ClassicHttpRequest, HttpClientResponseHandler) in order
to ensure automatic resource deallocation by the client.
For special cases one can still use HttpClient.executeOpen(HttpHost, ClassicHttpRequest, HttpContext)
to keep the response object open after the request execution. |
<T> T |
CloseableHttpClient.execute(HttpHost target,
ClassicHttpRequest request,
HttpClientResponseHandler<? extends T> responseHandler)
Executes a request using the default context and processes the
response using the given response handler.
|
CloseableHttpResponse |
CloseableHttpClient.execute(HttpHost target,
ClassicHttpRequest request,
HttpContext context)
已过时。
It is strongly recommended to use execute methods with
HttpClientResponseHandler
such as CloseableHttpClient.execute(HttpHost, ClassicHttpRequest, HttpContext, HttpClientResponseHandler) in order
to ensure automatic resource deallocation by the client.
For special cases one can still use HttpClient.executeOpen(HttpHost, ClassicHttpRequest, HttpContext)
to keep the response object open after the request execution. |
<T> T |
CloseableHttpClient.execute(HttpHost target,
ClassicHttpRequest request,
HttpContext context,
HttpClientResponseHandler<? extends T> responseHandler)
Executes a request using the default context and processes the
response using the given response handler.
|
| 限定符和类型 | 方法和说明 |
|---|---|
ManagedHttpClientConnectionFactory.Builder |
ManagedHttpClientConnectionFactory.Builder.requestWriterFactory(HttpMessageWriterFactory<ClassicHttpRequest> requestWriterFactory) |
| 构造器和说明 |
|---|
ManagedHttpClientConnectionFactory(Http1Config h1Config,
CharCodingConfig charCodingConfig,
HttpMessageWriterFactory<ClassicHttpRequest> requestWriterFactory,
HttpMessageParserFactory<ClassicHttpResponse> responseParserFactory) |
ManagedHttpClientConnectionFactory(Http1Config h1Config,
CharCodingConfig charCodingConfig,
HttpMessageWriterFactory<ClassicHttpRequest> requestWriterFactory,
HttpMessageParserFactory<ClassicHttpResponse> responseParserFactory,
ContentLengthStrategy incomingContentStrategy,
ContentLengthStrategy outgoingContentStrategy) |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract ClassicHttpResponse |
ConnectionEndpoint.execute(String id,
ClassicHttpRequest request,
HttpRequestExecutor executor,
HttpContext context)
Executes HTTP request using the provided request executor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected ClassicHttpRequest |
DefaultHttpRequestParser.createMessage(CharArrayBuffer buffer) |
ClassicHttpRequest |
DefaultClassicHttpRequestFactory.newHttpRequest(String method,
String uri) |
ClassicHttpRequest |
DefaultClassicHttpRequestFactory.newHttpRequest(String method,
URI uri) |
ClassicHttpRequest |
DefaultHttpRequestParser.parse(SessionInputBuffer buffer,
InputStream inputStream) |
ClassicHttpRequest |
DefaultBHttpServerConnection.receiveRequestHeader() |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpMessageWriter<ClassicHttpRequest> |
DefaultHttpRequestWriterFactory.create() |
HttpMessageParser<ClassicHttpRequest> |
DefaultHttpRequestParserFactory.create(Http1Config http1Config) |
| 限定符和类型 | 方法和说明 |
|---|---|
ClassicHttpResponse |
HttpRequestExecutor.execute(ClassicHttpRequest request,
HttpClientConnection conn,
HttpContext context)
Sends the request and obtain a response.
|
ClassicHttpResponse |
HttpRequestExecutor.execute(ClassicHttpRequest request,
HttpClientConnection conn,
HttpResponseInformationCallback informationCallback,
HttpContext context)
Sends the request and obtain a response.
|
boolean |
NoResponseOutOfOrderStrategy.isEarlyResponseDetected(ClassicHttpRequest request,
HttpClientConnection connection,
InputStream inputStream,
long totalBytesSent,
long nextWriteSize) |
boolean |
MonitoringResponseOutOfOrderStrategy.isEarlyResponseDetected(ClassicHttpRequest request,
HttpClientConnection connection,
InputStream inputStream,
long totalBytesSent,
long nextWriteSize) |
boolean |
HttpRequestExecutor.keepAlive(ClassicHttpRequest request,
ClassicHttpResponse response,
HttpClientConnection connection,
HttpContext context)
Determines whether the connection can be kept alive and is safe to be re-used for subsequent message exchanges.
|
protected void |
DefaultBHttpServerConnection.onRequestReceived(ClassicHttpRequest request) |
protected void |
DefaultBHttpClientConnection.onRequestSubmitted(ClassicHttpRequest request) |
void |
HttpRequestExecutor.preProcess(ClassicHttpRequest request,
HttpProcessor processor,
HttpContext context)
Pre-process the given request using the given protocol processor and
initiates the process of request execution.
|
void |
DefaultBHttpServerConnection.receiveRequestEntity(ClassicHttpRequest request) |
void |
DefaultBHttpClientConnection.sendRequestEntity(ClassicHttpRequest request) |
void |
DefaultBHttpClientConnection.sendRequestHeader(ClassicHttpRequest request) |
void |
DefaultBHttpClientConnection.terminateRequest(ClassicHttpRequest request) |
protected void |
DefaultHttpRequestWriter.writeHeadLine(ClassicHttpRequest message,
CharArrayBuffer lineBuf) |
| 限定符和类型 | 方法和说明 |
|---|---|
DefaultBHttpServerConnectionFactory.Builder |
DefaultBHttpServerConnectionFactory.Builder.requestParserFactory(HttpMessageParserFactory<ClassicHttpRequest> requestParserFactory) |
DefaultBHttpClientConnectionFactory.Builder |
DefaultBHttpClientConnectionFactory.Builder.requestWriterFactory(HttpMessageWriterFactory<ClassicHttpRequest> requestWriterFactory) |
| 限定符和类型 | 方法和说明 |
|---|---|
ClassicHttpRequest |
HttpServerConnection.receiveRequestHeader()
Receives the request line and all headers available from this connection.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
HttpRequestHandler.handle(ClassicHttpRequest request,
ClassicHttpResponse response,
HttpContext context)
Handles the request and produces a response to be sent back to
the client.
|
void |
HttpFilterHandler.handle(ClassicHttpRequest request,
HttpFilterChain.ResponseTrigger responseTrigger,
HttpContext context,
HttpFilterChain chain)
Processes the incoming HTTP request and if processing has been completed
submits a final response to the client.
|
void |
HttpServerRequestHandler.handle(ClassicHttpRequest request,
HttpServerRequestHandler.ResponseTrigger responseTrigger,
HttpContext context)
Handles the request and submits a final response to be sent back to the client.
|
boolean |
ResponseOutOfOrderStrategy.isEarlyResponseDetected(ClassicHttpRequest request,
HttpClientConnection connection,
InputStream inputStream,
long totalBytesSent,
long nextWriteSize)
Called before each write to the to a socket
OutputStream with the number of
bytes that have already been sent, and the size of the write that will occur if this check
does not encounter an out of order response. |
void |
HttpFilterChain.proceed(ClassicHttpRequest request,
HttpFilterChain.ResponseTrigger responseTrigger,
HttpContext context)
Proceeds to the next element in the request processing chain.
|
void |
HttpServerConnection.receiveRequestEntity(ClassicHttpRequest request)
Receives the next request entity available from this connection and attaches it to
an existing request.
|
void |
HttpClientConnection.sendRequestEntity(ClassicHttpRequest request)
Sends the request entity over the connection.
|
void |
HttpClientConnection.sendRequestHeader(ClassicHttpRequest request)
Sends the request line and all headers over the connection.
|
void |
HttpClientConnection.terminateRequest(ClassicHttpRequest request)
Terminates request prematurely potentially leaving
the connection in a inconsistent state.
|
| 限定符和类型 | 方法和说明 |
|---|---|
ClassicHttpRequest |
ClassicRequestBuilder.build() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ClassicRequestBuilder |
ClassicRequestBuilder.copy(ClassicHttpRequest request) |
protected void |
ClassicRequestBuilder.digest(ClassicHttpRequest request) |
void |
HttpServerFilterChainElement.handle(ClassicHttpRequest request,
HttpFilterChain.ResponseTrigger responseTrigger,
HttpContext context) |
void |
AbstractHttpServerAuthFilter.handle(ClassicHttpRequest request,
HttpFilterChain.ResponseTrigger responseTrigger,
HttpContext context,
HttpFilterChain chain) |
void |
TerminalServerFilter.handle(ClassicHttpRequest request,
HttpFilterChain.ResponseTrigger responseTrigger,
HttpContext context,
HttpFilterChain chain) |
void |
HttpServerExpectationFilter.handle(ClassicHttpRequest request,
HttpFilterChain.ResponseTrigger responseTrigger,
HttpContext context,
HttpFilterChain chain) |
void |
BasicHttpServerExpectationDecorator.handle(ClassicHttpRequest request,
HttpServerRequestHandler.ResponseTrigger responseTrigger,
HttpContext context) |
void |
BasicHttpServerRequestHandler.handle(ClassicHttpRequest request,
HttpServerRequestHandler.ResponseTrigger responseTrigger,
HttpContext context) |
void |
HttpServerFilterChainRequestHandler.handle(ClassicHttpRequest request,
HttpServerRequestHandler.ResponseTrigger trigger,
HttpContext context) |
protected ClassicHttpResponse |
BasicHttpServerExpectationDecorator.verify(ClassicHttpRequest request,
HttpContext context)
Verifies the HTTP request and decides whether it meets server expectations and the request
processing can continue.
|
protected boolean |
HttpServerExpectationFilter.verify(ClassicHttpRequest request,
HttpContext context)
Verifies the HTTP request and decides whether it meets server expectations and the request
processing can continue.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
BasicClassicHttpRequest
Basic implementation of
ClassicHttpRequest. |
Copyright © 2023. All rights reserved.