case class Codec(charset: String)(encode: (String) => ByteString, decode: (ByteString) => String) extends Product with Serializable
Ordering
- Alphabetic
- By Inheritance
Inherited
- Codec
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new Codec(charset: String)(encode: (String) => ByteString, decode: (ByteString) => String)
- charset
The charset to be sent to the client.
- encode
The transformation function.
A Codec handle the conversion of String to Byte arrays.
The charset to be sent to the client.
The transformation function.