org.springframework.http

## Interface StreamingHttpOutputMessage.Body

- Enclosing interface:
    StreamingHttpOutputMessage

      public static interface StreamingHttpOutputMessage.Body

  Defines the contract for bodies that can be written directly to a `OutputStream`. It is useful with HTTP client libraries that provide indirect access to an `OutputStream` via a callback mechanism.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `writeTo(OutputStream outputStream)` Writes this body to the given `OutputStream`.

- - ### Method Detail

    - #### writeTo

          void writeTo(OutputStream outputStream)
                throws IOException

      Writes this body to the given `OutputStream`.
      Parameters:
        `outputStream` - the output stream to write to
      Throws:
        `IOException` - in case of errors