Packages

c

org.apache.pekko.http.scaladsl.unmarshalling.Unmarshaller

EnhancedFromEntityUnmarshaller

implicit final class EnhancedFromEntityUnmarshaller[A] extends AnyVal

Source
Unmarshaller.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EnhancedFromEntityUnmarshaller
  2. AnyVal
  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. Protected

Instance Constructors

  1. new EnhancedFromEntityUnmarshaller(underlying: FromEntityUnmarshaller[A])

Value Members

  1. def forContentTypes(ranges: ContentTypeRange*): FromEntityUnmarshaller[A]

    Modifies the underlying Unmarshaller to only accept Content-Types matching one of the given ranges.

    Modifies the underlying Unmarshaller to only accept Content-Types matching one of the given ranges. Note that you can only restrict to a subset of the Content-Types accepted by the underlying unmarshaller, i.e. the given ranges must be completely supported also by the underlying Unmarshaller! If a violation of this rule is detected at runtime, i.e. if an entity is encountered whose Content-Type is matched by one of the given ranges but rejected by the underlying unmarshaller an IllegalStateException will be thrown!

  2. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  3. def mapWithCharset[B](f: (A, HttpCharset) => B): FromEntityUnmarshaller[B]
  4. val underlying: FromEntityUnmarshaller[A]