| Package | Description | 
|---|---|
| org.apache.hc.core5.http | Core HTTP transport component APIs. | 
| org.apache.hc.core5.http.impl | Default implementations of core HTTP APIs. | 
| 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.impl.nio | Default implementation of HTTP/1.1 transport based on
 the asynchronous (non-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.http.nio | Core HTTP transport APIs based on the 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.http.nio.support.classic | Support classes for the asynchronous I/O model that emulate
 behavior of the classic (blocking) I/O model. | 
| org.apache.hc.core5.http.protocol | Core HTTP protocol interceptors. | 
| org.apache.hc.core5.http.support | |
| org.apache.hc.core5.http2.impl | Default implementations of core HTTP/2 APIs. | 
| org.apache.hc.core5.http2.protocol | HTTP/2 protocol interceptors. | 
| org.apache.hc.core5.reactive | |
| org.apache.hc.core5.testing.classic | |
| org.apache.hc.core5.testing.nio | 
| Modifier and Type | Interface and Description | 
|---|---|
| interface  | HttpResponseFactory<T extends HttpResponse>A factory for  HttpResponseobjects. | 
| Modifier and Type | Interface and Description | 
|---|---|
| interface  | ClassicHttpResponse'Classic'  HttpResponsemessage that can encloseHttpEntity. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | ConnectionReuseStrategy. keepAlive(HttpRequest request,
         HttpResponse response,
         HttpContext context)Decides whether a connection can be kept open after a request. | 
| void | HttpResponseInterceptor. process(HttpResponse response,
       EntityDetails entity,
       HttpContext context)Processes a response. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | DefaultConnectionReuseStrategy. keepAlive(HttpRequest request,
         HttpResponse response,
         HttpContext context) | 
| void | Http1StreamListener. onResponseHead(HttpConnection connection,
              HttpResponse response) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected HttpVersion | DefaultHttpResponseWriter. protocolVersion(HttpResponse message)Determines the HTTP protocol version to be communicated to the opposite
 endpoint in the message header. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | DefaultHttpResponseParser<T extends HttpResponse>Default  NHttpMessageParserimplementation forHttpResponses. | 
| class  | DefaultHttpResponseWriter<T extends HttpResponse>Default  NHttpMessageWriterimplementation forHttpResponses. | 
| Modifier and Type | Method and Description | 
|---|---|
| HttpResponse | DefaultHttpResponseFactory. newHttpResponse(int status) | 
| HttpResponse | DefaultHttpResponseFactory. newHttpResponse(int status,
               String reasonPhrase) | 
| Modifier and Type | Method and Description | 
|---|---|
| NHttpMessageWriter<HttpResponse> | DefaultHttpResponseWriterFactory. create() | 
| NHttpMessageParser<HttpResponse> | DefaultHttpResponseParserFactory. create() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected boolean | ClientHttp1StreamDuplexer. handleIncomingMessage(HttpResponse response) | 
| protected boolean | ServerHttp1StreamDuplexer. handleOutgoingMessage(HttpResponse response) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | HttpResponseInformationCallback. execute(HttpResponse response,
       HttpConnection connection,
       HttpContext context) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected HttpEntity | HttpServerExpectationFilter. generateResponseContent(HttpResponse expectationFailed)Generates response content entity for the final HTTP response with an error status
 representing the cause of expectation failure. | 
| protected HttpEntity | AbstractHttpServerAuthFilter. generateResponseContent(HttpResponse unauthorized)Generates response body for UNAUTHORIZED response. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | BasicClassicHttpResponseBasic implementation of  ClassicHttpResponse. | 
| class  | BasicHttpResponseBasic implementation of  HttpResponse. | 
| class  | HttpResponseWrapperWraps an  HttpResponse. | 
| Modifier and Type | Method and Description | 
|---|---|
| static boolean | MessageSupport. canResponseHaveBody(String method,
                   HttpResponse response) | 
| Constructor and Description | 
|---|
| HttpResponseWrapper(HttpResponse message) | 
| StatusLine(HttpResponse response) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | AsyncClientExchangeHandler. consumeInformation(HttpResponse response,
                  HttpContext context)Triggered to signal receipt of an intermediate (1xx) HTTP response. | 
| void | AsyncPushConsumer. consumePromise(HttpRequest promise,
              HttpResponse response,
              EntityDetails entityDetails,
              HttpContext context)Triggered to signal receipt of a request message head used as a promise
 and the corresponding pushed response. | 
| void | AsyncClientExchangeHandler. consumeResponse(HttpResponse response,
               EntityDetails entityDetails,
               HttpContext context)Triggered to signal receipt of a response message head. | 
| void | AsyncResponseConsumer. consumeResponse(HttpResponse response,
               EntityDetails entityDetails,
               HttpContext context,
               FutureCallback<T> resultCallback)Triggered to signal receipt of a response message head. | 
| void | AsyncResponseConsumer. informationResponse(HttpResponse response,
                   HttpContext context)Triggered to signal receipt of an intermediate (1xx) HTTP response. | 
| void | AsyncFilterChain.ResponseTrigger. sendInformation(HttpResponse response)Sends an intermediate informational HTTP response to the client. | 
| void | ResponseChannel. sendInformation(HttpResponse response,
               HttpContext context)Sends an intermediate informational HTTP response through this channel. | 
| void | AsyncServerRequestHandler.ResponseTrigger. sendInformation(HttpResponse response,
               HttpContext context)Sends an intermediate informational HTTP response to the client. | 
| void | ResponseChannel. sendResponse(HttpResponse response,
            EntityDetails entityDetails,
            HttpContext context)Sends a final HTTP response through this channel. | 
| void | AsyncFilterChain.ResponseTrigger. submitResponse(HttpResponse response,
              AsyncEntityProducer entityProducer)Sends a final HTTP response to the client. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected abstract T | AbstractAsyncResponseConsumer. buildResult(HttpResponse response,
           E entity,
           ContentType contentType)Triggered to generate object that represents a result of response message processing. | 
| void | BasicClientExchangeHandler. consumeInformation(HttpResponse response,
                  HttpContext httpContext) | 
| void | AbstractAsyncPushHandler. consumePromise(HttpRequest promise,
              HttpResponse response,
              EntityDetails entityDetails,
              HttpContext httpContext) | 
| void | BasicClientExchangeHandler. consumeResponse(HttpResponse response,
               EntityDetails entityDetails,
               HttpContext httpContext) | 
| void | BasicResponseConsumer. consumeResponse(HttpResponse response,
               EntityDetails entityDetails,
               HttpContext httpContext,
               FutureCallback<Message<HttpResponse,T>> resultCallback) | 
| void | AbstractAsyncResponseConsumer. consumeResponse(HttpResponse response,
               EntityDetails entityDetails,
               HttpContext httpContext,
               FutureCallback<T> resultCallback) | 
| protected AsyncEntityProducer | AbstractAsyncServerAuthFilter. generateResponseContent(HttpResponse unauthorized)Generates response body for UNAUTHORIZED response. | 
| protected AsyncEntityProducer | AsyncServerExpectationFilter. generateResponseContent(HttpResponse expectationFailed) | 
| void | BasicResponseConsumer. informationResponse(HttpResponse response,
                   HttpContext httpContext) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | BasicResponseConsumer. consumeResponse(HttpResponse response,
               EntityDetails entityDetails,
               HttpContext httpContext,
               FutureCallback<Message<HttpResponse,T>> resultCallback) | 
| Constructor and Description | 
|---|
| BasicPushProducer(HttpResponse response,
                 AsyncEntityProducer dataProducer) | 
| BasicResponseProducer(HttpResponse response) | 
| BasicResponseProducer(HttpResponse response,
                     AsyncEntityProducer dataProducer) | 
| BasicResponseProducer(HttpResponse response,
                     String message) | 
| BasicResponseProducer(HttpResponse response,
                     String message,
                     ContentType contentType) | 
| ImmediateResponseExchangeHandler(HttpResponse response,
                                String message) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected abstract void | AbstractClassicServerExchangeHandler. handle(HttpRequest request,
      InputStream requestStream,
      HttpResponse response,
      OutputStream responseStream,
      HttpContext context)Handles an incoming request optionally reading its entity content form the given input stream
 and generates a response optionally writing out its entity content into the given output stream. | 
| Modifier and Type | Method and Description | 
|---|---|
| HttpResponse | HttpCoreContext. getResponse()Represents current response message head. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | ResponseConformance. process(HttpResponse response,
       EntityDetails entity,
       HttpContext context) | 
| void | ResponseContent. process(HttpResponse response,
       EntityDetails entity,
       HttpContext context)Processes the response (possibly updating or inserting) Content-Length and Transfer-Encoding headers. | 
| void | DefaultHttpProcessor. process(HttpResponse response,
       EntityDetails entity,
       HttpContext context) | 
| void | ResponseServer. process(HttpResponse response,
       EntityDetails entity,
       HttpContext context) | 
| void | ResponseConnControl. process(HttpResponse response,
       EntityDetails entity,
       HttpContext localContext) | 
| void | ResponseDate. process(HttpResponse response,
       EntityDetails entity,
       HttpContext context) | 
| void | HttpCoreContext. setResponse(HttpResponse response) | 
| Modifier and Type | Method and Description | 
|---|---|
| static BasicResponseBuilder | BasicResponseBuilder. copy(HttpResponse response) | 
| Modifier and Type | Method and Description | 
|---|---|
| HttpResponse | DefaultH2ResponseConverter. convert(List<Header> headers) | 
| Modifier and Type | Method and Description | 
|---|---|
| List<Header> | DefaultH2ResponseConverter. convert(HttpResponse message) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | H2ResponseConnControl. process(HttpResponse response,
       EntityDetails entity,
       HttpContext context) | 
| void | H2ResponseContent. process(HttpResponse response,
       EntityDetails entity,
       HttpContext context) | 
| void | H2ResponseConformance. process(HttpResponse response,
       EntityDetails entity,
       HttpContext context) | 
| Modifier and Type | Method and Description | 
|---|---|
| HttpResponse | ReactiveResponseConsumer. getInformationResponse()Returns the intermediate (1xx) HTTP response if one was received. | 
| Modifier and Type | Method and Description | 
|---|---|
| Future<Message<HttpResponse,org.reactivestreams.Publisher<ByteBuffer>>> | ReactiveResponseConsumer. getResponseFuture() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | ReactiveResponseConsumer. consumeResponse(HttpResponse response,
               EntityDetails entityDetails,
               HttpContext httpContext,
               FutureCallback<Void> resultCallback) | 
| void | ReactiveResponseConsumer. informationResponse(HttpResponse response,
                   HttpContext httpContext) | 
| Constructor and Description | 
|---|
| ReactiveResponseConsumer(FutureCallback<Message<HttpResponse,org.reactivestreams.Publisher<ByteBuffer>>> responseCallback)Creates a  ReactiveResponseConsumerthat will call back the suppliedFutureCallbackwith a
 streamable response. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | LoggingHttp1StreamListener. onResponseHead(HttpConnection connection,
              HttpResponse response) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | LoggingHttp1StreamListener. onResponseHead(HttpConnection connection,
              HttpResponse response) | 
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.