Class Marshal<A>
java.lang.Object
org.apache.pekko.http.scaladsl.marshalling.Marshal<A>
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classstatic class
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T> Marshal<T>apply(T value) static <T> scala.Option<scala.Function0<T>>selectMarshallingForContentType(scala.collection.immutable.Seq<Marshalling<T>> marshallings, ContentType contentType) <B> scala.concurrent.Future<B>to(Marshaller<A, B> m, scala.concurrent.ExecutionContext ec) scala.concurrent.Future<HttpResponse>toResponseFor(HttpRequest request, Marshaller<A, HttpResponse> m, scala.concurrent.ExecutionContext ec) Marshalsvalueto anHttpResponsefor the givenHttpRequestwith full content-negotiation.value()
- 
Constructor Details- 
Marshal
 
- 
- 
Method Details- 
apply
- 
selectMarshallingForContentTypepublic static <T> scala.Option<scala.Function0<T>> selectMarshallingForContentType(scala.collection.immutable.Seq<Marshalling<T>> marshallings, ContentType contentType) 
- 
value
- 
toMarshalsvalueusing the first availableMarshallingforAandBprovided by the givenMarshaller. If the marshalling is flexible with regard to the used charsetUTF-8is chosen.- Parameters:
- m- (undocumented)
- ec- (undocumented)
- Returns:
- (undocumented)
 
- 
toResponseForpublic scala.concurrent.Future<HttpResponse> toResponseFor(HttpRequest request, Marshaller<A, HttpResponse> m, scala.concurrent.ExecutionContext ec) Marshalsvalueto anHttpResponsefor the givenHttpRequestwith full content-negotiation.- Parameters:
- request- (undocumented)
- m- (undocumented)
- ec- (undocumented)
- Returns:
- (undocumented)
 
 
-