Interface StreamingHttpOutputMessage

All Superinterfaces:
HttpMessage, HttpOutputMessage

public interface StreamingHttpOutputMessage extends HttpOutputMessage
Represents an HTTP output message that allows for setting a streaming body. Note that such messages typically do not support HttpOutputMessage.getBody() access.
Since:
4.0
Author:
Arjen Poutsma
See Also:
  • Method Details

    • setBody

      void setBody(StreamingHttpOutputMessage.Body body)
      Set the streaming body callback for this message.
      Parameters:
      body - the streaming body callback
    • setBody

      default void setBody(byte[] body) throws IOException
      Variant of setBody(Body) for a non-streaming write.
      Parameters:
      body - the content to write
      Throws:
      IOException - if an I/O exception occurs
      Since:
      7.0