Class Unmarshal<A>

java.lang.Object
akka.http.scaladsl.unmarshalling.Unmarshal<A>

public class Unmarshal<A> extends Object
  • Constructor Details

    • Unmarshal

      public Unmarshal(A value)
  • Method Details

    • apply

      public static <T> Unmarshal<T> apply(T value)
    • value

      public A value()
    • to

      public <B> scala.concurrent.Future<B> to(Unmarshaller<A,B> um, scala.concurrent.ExecutionContext ec, akka.stream.Materializer mat)
      Unmarshals the value to the given Type using the in-scope Unmarshaller.

      Uses the default materializer ExecutionContext if no implicit execution context is provided. If you expect the marshalling to be heavy, it is suggested to provide a specialized context for those operations.

      Parameters:
      um - (undocumented)
      ec - (undocumented)
      mat - (undocumented)
      Returns:
      (undocumented)