Packages

case class Codec(charset: String)(encode: (String) => ByteString, decode: (ByteString) => String) extends Product with Serializable

A Codec handle the conversion of String to Byte arrays.

charset

The charset to be sent to the client.

encode

The transformation function.

Source
Results.scala
Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Codec
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Codec(charset: String)(encode: (String) => ByteString, decode: (ByteString) => String)

    charset

    The charset to be sent to the client.

    encode

    The transformation function.

Value Members

  1. val charset: String
  2. val decode: (ByteString) => String
  3. val encode: (String) => ByteString
  4. def productElementNames: Iterator[String]
    Definition Classes
    Product