Interface HttpResponseReadyCallback


@Experimental @NoImplement @MinMuleVersion("4.10.0") public interface HttpResponseReadyCallback
Handler for sending an HTTP response asynchronously
Since:
0.12.0
  • Method Details

    • responseReady

      void responseReady(HttpResponse response, ResponseStatusCallback responseStatusCallback)
      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

      SseClient startSseResponse(Consumer<SseClientConfigurer> config)
      Starts a response with an SSE stream and returns a SseClient to send the corresponding events.
      Parameters:
      config - the config for the resulting SseClient.
      Returns:
      the SseClient to send the events.