http4k / org.http4k.core / MemoryBody
data class MemoryBody :
Body
Represents a body that is backed by an in-memory ByteBuffer. Closing this has no effect.
Name | Summary |
---|---|
<init> | MemoryBody(payload: String ) MemoryBody(payload: ByteArray ) Represents a body that is backed by an in-memory ByteBuffer. Closing this has no effect. MemoryBody(payload: ByteBuffer ) |
Name | Summary |
---|---|
length | Will be null for bodies where it’s impossible to a priori determine - e.g. StreamBodyval length: Long |
payload | val payload: ByteBuffer |
stream | val stream: ByteArrayInputStream |
Name | Summary |
---|---|
close | fun close(): Unit |
toString | fun toString(): String |
Name | Summary |
---|---|
gunzipped | fun Body .gunzipped(): Body |
gunzippedStream | fun Body .gunzippedStream(): Body |
gzipped | fun Body .gzipped(): CompressionResult |
gzippedStream | fun Body .gzippedStream(): CompressionResult |