val text = "Hello, world"val textEncoder: ContentEncoder[String] = ContentEncoder.text(codec = Codec.UTF8)
val textContent: Content = textEncoder(text)
A content decoder is able to encode a scala value into an HTTP content . It will produce both
a stream of bytes and the set of required HTTP headers like Content-Length or Content-Type.
A HTTP content encoder.
A content decoder is able to encode a scala value into an HTTP content . It will produce both a stream of bytes and the set of required HTTP headers like
Content-Length
orContent-Type
.