Package org.apache.hc.core5.http.nio
Interface ResponseChannel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
pushPromise(HttpRequest promise, AsyncPushProducer responseProducer, HttpContext context)
Pushes a request message head through this channel as a promise to deliver a response message.void
sendInformation(HttpResponse response, HttpContext context)
Sends an intermediate informational HTTP response through this channel.void
sendResponse(HttpResponse response, EntityDetails entityDetails, HttpContext context)
Sends a final HTTP response through this channel.
-
-
-
Method Detail
-
sendInformation
void sendInformation(HttpResponse response, HttpContext context) throws HttpException, java.io.IOException
Sends an intermediate informational HTTP response through this channel.- Parameters:
response
- an intermediate (1xx) HTTP response.context
- the actual execution context.- Throws:
HttpException
java.io.IOException
-
sendResponse
void sendResponse(HttpResponse response, EntityDetails entityDetails, HttpContext context) throws HttpException, java.io.IOException
Sends a final HTTP response through this channel.- Parameters:
response
- a final (non 1xx) HTTP responseentityDetails
- the response entity details ornull
if the response does not enclose an entity.context
- the actual execution context.- Throws:
HttpException
java.io.IOException
-
pushPromise
void pushPromise(HttpRequest promise, AsyncPushProducer responseProducer, HttpContext context) throws HttpException, java.io.IOException
Pushes a request message head through this channel as a promise to deliver a response message.- Parameters:
promise
- the request message header used as a promise.responseProducer
- the push response message producer.context
- the actual execution context.- Throws:
HttpException
java.io.IOException
-
-