Package | Description |
---|---|
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.
|
org.apache.hc.core5.testing.classic | |
org.apache.hc.core5.testing.framework |
Modifier and Type | Method and Description |
---|---|
ClassicHttpResponse |
HttpRequester.execute(HttpClientConnection connection,
ClassicHttpRequest request,
HttpContext context) |
ClassicHttpResponse |
HttpRequester.execute(HttpClientConnection connection,
ClassicHttpRequest request,
HttpResponseInformationCallback informationCallback,
HttpContext context) |
ClassicHttpResponse |
HttpRequester.execute(HttpHost targetHost,
ClassicHttpRequest request,
HttpResponseInformationCallback informationCallback,
Timeout connectTimeout,
HttpContext context) |
ClassicHttpResponse |
HttpRequester.execute(HttpHost targetHost,
ClassicHttpRequest request,
Timeout connectTimeout,
HttpContext context) |
Modifier and Type | Method and Description |
---|---|
boolean |
HttpRequester.keepAlive(HttpClientConnection connection,
ClassicHttpRequest request,
ClassicHttpResponse response,
HttpContext context) |
Modifier and Type | Method and Description |
---|---|
ServerBootstrap |
ServerBootstrap.setResponseFactory(HttpResponseFactory<ClassicHttpResponse> responseFactory)
Assigns
HttpResponseFactory instance. |
Modifier and Type | Method and Description |
---|---|
protected ClassicHttpResponse |
DefaultHttpResponseParser.createMessage(CharArrayBuffer buffer) |
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.
|
ClassicHttpResponse |
DefaultClassicHttpResponseFactory.newHttpResponse(int status) |
ClassicHttpResponse |
DefaultClassicHttpResponseFactory.newHttpResponse(int status,
String reasonPhrase) |
ClassicHttpResponse |
DefaultBHttpClientConnection.receiveResponseHeader() |
Modifier and Type | Method and Description |
---|---|
HttpMessageWriter<ClassicHttpResponse> |
DefaultHttpResponseWriterFactory.create() |
HttpMessageParser<ClassicHttpResponse> |
DefaultHttpResponseParserFactory.create(Http1Config http1Config) |
Modifier and Type | Method and Description |
---|---|
protected void |
HttpService.handleException(HttpException ex,
ClassicHttpResponse response)
Handles the given exception and generates an HTTP response to be sent
back to the client to inform about the exceptional condition encountered
in the course of the request processing.
|
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 |
DefaultBHttpClientConnection.onResponseReceived(ClassicHttpResponse response) |
protected void |
DefaultBHttpServerConnection.onResponseSubmitted(ClassicHttpResponse response) |
void |
HttpRequestExecutor.postProcess(ClassicHttpResponse response,
HttpProcessor processor,
HttpContext context)
Post-processes the given response using the given protocol processor and
completes the process of request execution.
|
void |
DefaultBHttpClientConnection.receiveResponseEntity(ClassicHttpResponse response) |
void |
DefaultBHttpServerConnection.sendResponseEntity(ClassicHttpResponse response) |
void |
DefaultBHttpServerConnection.sendResponseHeader(ClassicHttpResponse response) |
protected void |
DefaultHttpResponseWriter.writeHeadLine(ClassicHttpResponse message,
CharArrayBuffer lineBuf) |
Modifier and Type | Method and Description |
---|---|
DefaultBHttpClientConnectionFactory.Builder |
DefaultBHttpClientConnectionFactory.Builder.responseParserFactory(HttpMessageParserFactory<ClassicHttpResponse> responseParserFactory) |
DefaultBHttpServerConnectionFactory.Builder |
DefaultBHttpServerConnectionFactory.Builder.responseWriterFactory(HttpMessageWriterFactory<ClassicHttpResponse> responseWriterFactory) |
Modifier and Type | Method and Description |
---|---|
ClassicHttpResponse |
HttpClientConnection.receiveResponseHeader()
Receives the request line and headers of the next response available from
this connection.
|
Modifier and Type | Method and Description |
---|---|
void |
HttpRequestHandler.handle(ClassicHttpRequest request,
ClassicHttpResponse response,
HttpContext context)
Handles the request and produces a response to be sent back to
the client.
|
T |
HttpClientResponseHandler.handleResponse(ClassicHttpResponse response)
Processes an
ClassicHttpResponse and returns some value
corresponding to that response. |
void |
HttpClientConnection.receiveResponseEntity(ClassicHttpResponse response)
Receives the next response entity available from this connection and
attaches it to an existing HttpResponse object.
|
void |
HttpFilterChain.ResponseTrigger.sendInformation(ClassicHttpResponse response)
Sends an intermediate informational HTTP response to the client.
|
void |
HttpServerRequestHandler.ResponseTrigger.sendInformation(ClassicHttpResponse response)
Sends an intermediate informational HTTP response to the client.
|
void |
HttpServerConnection.sendResponseEntity(ClassicHttpResponse response)
Sends the response entity of a response over this connection.
|
void |
HttpServerConnection.sendResponseHeader(ClassicHttpResponse response)
Sends the response line and headers of a response over this connection.
|
void |
HttpFilterChain.ResponseTrigger.submitResponse(ClassicHttpResponse response)
Sends a final HTTP response to the client.
|
void |
HttpServerRequestHandler.ResponseTrigger.submitResponse(ClassicHttpResponse response)
Sends a final HTTP response to the client.
|
Modifier and Type | Method and Description |
---|---|
ClassicHttpResponse |
ClassicResponseBuilder.build() |
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.
|
Modifier and Type | Method and Description |
---|---|
static ClassicResponseBuilder |
ClassicResponseBuilder.copy(ClassicHttpResponse response) |
protected void |
ClassicResponseBuilder.digest(ClassicHttpResponse response) |
Constructor and Description |
---|
BasicHttpServerRequestHandler(HttpRequestMapper<HttpRequestHandler> handlerMapper,
HttpResponseFactory<ClassicHttpResponse> responseFactory) |
TerminalServerFilter(HttpRequestMapper<HttpRequestHandler> handlerMapper,
HttpResponseFactory<ClassicHttpResponse> responseFactory) |
Modifier and Type | Class and Description |
---|---|
class |
BasicClassicHttpResponse
Basic implementation of
ClassicHttpResponse . |
Modifier and Type | Method and Description |
---|---|
ClassicHttpResponse |
ClassicTestClient.execute(HttpHost targetHost,
ClassicHttpRequest request,
HttpContext context) |
Modifier and Type | Method and Description |
---|---|
protected void |
LoggingBHttpClientConnection.onResponseReceived(ClassicHttpResponse response) |
protected void |
LoggingBHttpServerConnection.onResponseSubmitted(ClassicHttpResponse response) |
Modifier and Type | Method and Description |
---|---|
void |
TestingFrameworkRequestHandler.handle(ClassicHttpRequest request,
ClassicHttpResponse response,
HttpContext context)
Checks the HTTP request against the requestExpectations that it was previously given.
|
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.