public static interface AsyncServerRequestHandler.ResponseTrigger
Modifier and Type | Method and Description |
---|---|
void |
pushPromise(HttpRequest promise,
HttpContext context,
AsyncPushProducer responseProducer)
Pushes a request message head as a promise to deliver a response message.
|
void |
sendInformation(HttpResponse response,
HttpContext context)
Sends an intermediate informational HTTP response to the client.
|
void |
submitResponse(AsyncResponseProducer responseProducer,
HttpContext context)
Sends a final HTTP response to the client.
|
void sendInformation(HttpResponse response, HttpContext context) throws HttpException, IOException
response
- the intermediate (1xx) HTTP responsecontext
- the actual execution context.HttpException
- in case of an HTTP protocol violation.IOException
- in case of an I/O error.void submitResponse(AsyncResponseProducer responseProducer, HttpContext context) throws HttpException, IOException
responseProducer
- the HTTP response message producer.context
- the actual execution context.HttpException
- in case of an HTTP protocol violation.IOException
- in case of an I/O error.void pushPromise(HttpRequest promise, HttpContext context, AsyncPushProducer responseProducer) throws HttpException, IOException
promise
- the request message header used as a promise.context
- the actual execution context.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.