- Companion:
- class
Value members
Concrete methods
Encodes a value from its Show instance. Too broad to be implicit, too useful to not exist.
Encodes a value from its Show instance. Too broad to be implicit, too useful to not exist.
Create a new EntityEncoder
Create a new EntityEncoder
This constructor is a helper for types that can be serialized synchronously, for example a String.
Implicits
Implicits
Encodes an entity body. Chunking of the stream is preserved. A
Transfer-Encoding: chunked
header is set, as we cannot know
the content length without running the stream.
Encodes an entity body. Chunking of the stream is preserved. A
Transfer-Encoding: chunked
header is set, as we cannot know
the content length without running the stream.
A stream encoder is intended for streaming, and does not calculate its bodies in advance. As such, it does not calculate the Content-Length in advance. This is for use with chunked transfer encoding.
A stream encoder is intended for streaming, and does not calculate its bodies in advance. As such, it does not calculate the Content-Length in advance. This is for use with chunked transfer encoding.