public static interface AsyncFilterChain.ResponseTrigger
Modifier and Type | Method and Description |
---|---|
void |
pushPromise(HttpRequest promise,
AsyncPushProducer responseProducer)
Pushes a request message head as a promise to deliver a response message.
|
void |
sendInformation(HttpResponse response)
Sends an intermediate informational HTTP response to the client.
|
void |
submitResponse(HttpResponse response,
AsyncEntityProducer entityProducer)
Sends a final HTTP response to the client.
|
void sendInformation(HttpResponse response) throws HttpException, IOException
response
- the intermediate (1xx) HTTP response.HttpException
- in case of an HTTP protocol violation.IOException
- in case of an I/O error.void submitResponse(HttpResponse response, AsyncEntityProducer entityProducer) throws HttpException, IOException
response
- the final (non 1xx) HTTP response.HttpException
- in case of an HTTP protocol violation.IOException
- in case of an I/O error.void pushPromise(HttpRequest promise, AsyncPushProducer responseProducer) throws HttpException, IOException
promise
- the request message header used as a promise.responseProducer
- the push response message producer.HttpException
- in case of an HTTP protocol violation.IOException
- in case of an I/O error.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.