@NoImplement
public interface HttpResponseReadyCallback
| Modifier and Type | Method and Description |
|---|---|
void |
responseReady(HttpResponse response,
ResponseStatusCallback responseStatusCallback)
Method to send response to the client.
|
Writer |
startResponse(HttpResponse response,
ResponseStatusCallback responseStatusCallback,
Charset encoding)
Method to send a delayed response to the client.
|
void responseReady(HttpResponse response, ResponseStatusCallback responseStatusCallback)
response - HTTP response content.responseStatusCallback - callback to be called if there's a failure while sending the response or when it is
successfully sent.Writer startResponse(HttpResponse response, ResponseStatusCallback responseStatusCallback, Charset encoding)
HttpResponse will be used to send all HTTP metadata
(status code, headers and so on) but its HttpEntity will be ignored and the
HTTP body will be written through the returned Writer. The connection will remain open until the Writer is
closed.Copyright © 2003–2025 MuleSoft, Inc.. All rights reserved.