Packages

object EntityDecoder extends EntityDecoderInstances

EntityDecoder is used to attempt to decode an EntityBody This companion object provides a way to create new EntityDecoders along with some commonly used instances which can be resolved implicitly.

Source
EntityDecoder.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EntityDecoder
  2. EntityDecoderInstances
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def apply[T](implicit ev: EntityDecoder[T]): EntityDecoder[T]

    summon an implicit EntityEncoder

  2. def binFile(file: File): EntityDecoder[File]
    Definition Classes
    EntityDecoderInstances
  3. implicit val binary: EntityDecoder[ByteVector]
    Definition Classes
    EntityDecoderInstances
  4. def collectBinary(msg: Message): DecodeResult[ByteVector]

    Helper method which simply gathers the body into a single ByteVector

  5. def decodeBy[T](r1: MediaRange, rs: MediaRange*)(f: (Message) ⇒ DecodeResult[T]): EntityDecoder[T]

    Create a new EntityDecoder

    Create a new EntityDecoder

    The new EntityDecoder will attempt to decode messages of type T only if the Message satisfies the provided MediaRanges

  6. def decodeString(msg: Message)(implicit defaultCharset: Charset = DefaultCharset): Task[String]

    Decodes a message to a String

  7. def error[T](t: Throwable): EntityDecoder[T]

    Provides a mechanism to fail decoding

    Provides a mechanism to fail decoding

    Definition Classes
    EntityDecoderInstances
  8. implicit def multipart: EntityDecoder[Multipart]
    Definition Classes
    EntityDecoderInstances
  9. implicit def text(implicit defaultCharset: Charset = DefaultCharset): EntityDecoder[String]
    Definition Classes
    EntityDecoderInstances
  10. def textFile(file: File): EntityDecoder[File]
    Definition Classes
    EntityDecoderInstances