Module org.mule.sdk.api
Interface HttpResponseReadyCallback
Handler for sending an HTTP response asynchronously
- Since:
- 0.12.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidresponseReady(HttpResponse response, ResponseStatusCallback responseStatusCallback) Method to send response to the client.startSseResponse(Consumer<SseClientConfigurer> config) Starts a response with an SSE stream and returns aSseClientto send the corresponding events.
-
Method Details
-
responseReady
Method to send response to the client.- Parameters:
response- HTTP response content.responseStatusCallback- callback to be called if there's a failure while sending the response or when it is successfully sent.
-
startSseResponse
Starts a response with an SSE stream and returns aSseClientto send the corresponding events.
-