public interface RouteDirectives
Modifier and Type | Method and Description |
---|---|
StandardRoute |
complete(scala.Function0<ToResponseMarshallable> m)
Completes the request using the given arguments.
|
StandardRoute |
failWith(java.lang.Throwable error)
Bubbles the given error up the response chain, where it is dealt with by the closest
handleExceptions
directive and its ExceptionHandler. |
StandardRoute |
redirect(Uri uri,
StatusCodes.Redirection redirectionType)
Completes the request with redirection response of the given type to the given URI.
|
StandardRoute |
reject()
Rejects the request with an empty set of rejections.
|
StandardRoute |
reject(scala.collection.Seq<Rejection> rejections)
Rejects the request with the given rejections.
|
StandardRoute reject()
StandardRoute reject(scala.collection.Seq<Rejection> rejections)
rejections
- (undocumented)StandardRoute redirect(Uri uri, StatusCodes.Redirection redirectionType)
uri
- (undocumented)redirectionType
- (undocumented)StandardRoute complete(scala.Function0<ToResponseMarshallable> m)
m
- (undocumented)StandardRoute failWith(java.lang.Throwable error)
handleExceptions
directive and its ExceptionHandler.
error
- (undocumented)