Interface MarshaledResponseBody

All Known Implementing Classes:
MarshaledResponseBody.ByteBuffer, MarshaledResponseBody.Bytes, MarshaledResponseBody.File, MarshaledResponseBody.FileChannel

A known-length, finalized HTTP response body.

This type describes the body to write; it is not itself responsible for writing to a transport. Bodies may be backed by bytes, files, file channels, or byte buffers.

Author:
Mark Allen
  • Method Details

    • getLength

      The number of bytes this body will write.
      Returns:
      the body length