org.springframework.http

## Interface HttpOutputMessage

- All Superinterfaces:
    HttpMessage
  All Known Subinterfaces:
    AsyncClientHttpRequest, ClientHttpRequest, ServerHttpResponse, StreamingHttpOutputMessage
  All Known Implementing Classes:
    AbstractClientHttpRequest, DelegatingServerHttpResponse, MockAsyncClientHttpRequest, MockClientHttpRequest, MockHttpOutputMessage, ServletServerHttpResponse

      public interface HttpOutputMessage
      extends HttpMessage

  Represents an HTTP output message, consisting of headers and a writable body.

  Typically implemented by an HTTP request handle on the client side, or an HTTP response handle on the server side.

  Since:
    3.0
  Author:
    Arjen Poutsma

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `OutputStream` | `getBody()` Return the body of the message as an output stream.

    - ### Methods inherited from interface org.springframework.http.HttpMessage

      `getHeaders`

- - ### Method Detail

    - #### getBody

          OutputStream getBody()
                        throws IOException

      Return the body of the message as an output stream.
      Returns:
        the output stream body (never `null`)
      Throws:
        `IOException` - in case of I/O errors