sealed abstract class Marshaller[-A, +B] extends AnyRef

Source
Marshaller.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Marshaller
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def apply(value: A)(implicit ec: ExecutionContext): Future[List[Marshalling[B]]]

Concrete Value Members

  1. def compose[C](f: (C) ⇒ A): Marshaller[C, B]
  2. def composeWithEC[C](f: (ExecutionContext) ⇒ (C) ⇒ A): Marshaller[C, B]
  3. def map[C](f: (B) ⇒ C): Marshaller[A, C]
  4. def wrap[C, D >: B](newMediaType: MediaType)(f: (C) ⇒ A)(implicit mto: ContentTypeOverrider[D]): Marshaller[C, D]

    Reuses this Marshaller's logic to produce a new Marshaller from another type C which overrides the akka.http.scaladsl.model.MediaType of the marshalling result with the given one.

    Reuses this Marshaller's logic to produce a new Marshaller from another type C which overrides the akka.http.scaladsl.model.MediaType of the marshalling result with the given one. Note that not all wrappings are legal. f the underlying akka.http.scaladsl.model.MediaType has constraints with regard to the charsets it allows the new akka.http.scaladsl.model.MediaType must be compatible, since akka-http will never recode entities. If the wrapping is illegal the scala.concurrent.Future produced by the resulting marshaller will contain a RuntimeException.

  5. def wrapWithEC[C, D >: B](newMediaType: MediaType)(f: (ExecutionContext) ⇒ (C) ⇒ A)(implicit cto: ContentTypeOverrider[D]): Marshaller[C, D]

    Reuses this Marshaller's logic to produce a new Marshaller from another type C which overrides the akka.http.scaladsl.model.MediaType of the marshalling result with the given one.

    Reuses this Marshaller's logic to produce a new Marshaller from another type C which overrides the akka.http.scaladsl.model.MediaType of the marshalling result with the given one. Note that not all wrappings are legal. f the underlying akka.http.scaladsl.model.MediaType has constraints with regard to the charsets it allows the new akka.http.scaladsl.model.MediaType must be compatible, since akka-http will never recode entities. If the wrapping is illegal the scala.concurrent.Future produced by the resulting marshaller will contain a RuntimeException.