public interface MarshallingDirectives
Modifier and Type | Method and Description |
---|---|
<T> Unmarshaller<HttpRequest,T> |
as(Unmarshaller<HttpRequest,T> um)
Returns the in-scope
FromRequestUnmarshaller for the given type. |
<T> scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>> |
completeWith(Marshaller<T,HttpResponse> marshaller,
scala.Function1<scala.Function1<T,scala.runtime.BoxedUnit>,scala.runtime.BoxedUnit> inner)
Uses the marshaller for the given type to produce a completion function that is passed to its inner function.
|
<T> Directive<scala.Tuple1<T>> |
entity(Unmarshaller<HttpRequest,T> um)
Unmarshalls the requests entity to the given type passes it to its inner Route.
|
<A,B> scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>> |
handleWith(scala.Function1<A,B> f,
Unmarshaller<HttpRequest,A> um,
Marshaller<B,HttpResponse> m)
Completes the request using the given function.
|
<T> Marshaller<T,HttpResponse> |
instanceOf(Marshaller<T,HttpResponse> m)
Returns the in-scope Marshaller for the given type.
|
<T> Directive<scala.Tuple1<T>> entity(Unmarshaller<HttpRequest,T> um)
Rejection
produced by the unmarshaller.
um
- (undocumented)<T> Unmarshaller<HttpRequest,T> as(Unmarshaller<HttpRequest,T> um)
FromRequestUnmarshaller
for the given type.
um
- (undocumented)<T> scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>> completeWith(Marshaller<T,HttpResponse> marshaller, scala.Function1<scala.Function1<T,scala.runtime.BoxedUnit>,scala.runtime.BoxedUnit> inner)
marshaller
- (undocumented)inner
- (undocumented)<T> Marshaller<T,HttpResponse> instanceOf(Marshaller<T,HttpResponse> m)
m
- (undocumented)<A,B> scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>> handleWith(scala.Function1<A,B> f, Unmarshaller<HttpRequest,A> um, Marshaller<B,HttpResponse> m)
f
- (undocumented)um
- (undocumented)m
- (undocumented)