public static interface AsyncFilterChain.ResponseTrigger
| 限定符和类型 | 方法和说明 |
|---|---|
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.HttpExceptionIOExceptionvoid submitResponse(HttpResponse response, AsyncEntityProducer entityProducer) throws HttpException, IOException
response - the final (non 1xx) HTTP response.HttpExceptionIOExceptionvoid pushPromise(HttpRequest promise, AsyncPushProducer responseProducer) throws HttpException, IOException
promise - the request message header used as a promise.responseProducer - the push response message producer.HttpExceptionIOExceptionCopyright © 2023. All rights reserved.