public interface RouteDirectives
| Modifier and Type | Method and Description | 
|---|---|
| StandardRoute | complete(scala.Function0<ToResponseMarshallable> m)Completes the request using the given arguments. | 
| <T> StandardRoute | complete(StatusCode status,
        scala.Function0<T> v,
        Marshaller<T,RequestEntity> m)Completes the request using the given arguments. | 
| <T> StandardRoute | complete(StatusCode status,
        scala.collection.immutable.Seq<HttpHeader> headers,
        scala.Function0<T> v,
        Marshaller<T,RequestEntity> 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  handleExceptionsdirective and its ExceptionHandler. | 
| StandardRoute | handle(scala.Function1<HttpRequest,scala.concurrent.Future<HttpResponse>> handler)Handle the request using a function. | 
| StandardRoute | handle(scala.PartialFunction<HttpRequest,scala.concurrent.Future<HttpResponse>> handler)Handle the request using an asynchronous partial function. | 
| StandardRoute | handle(scala.PartialFunction<HttpRequest,scala.concurrent.Future<HttpResponse>> handler,
      scala.collection.immutable.Seq<Rejection> rejections)Handle the request using an asynchronous partial function. | 
| StandardRoute | handleSync(scala.Function1<HttpRequest,HttpResponse> handler)Handle the request using a function. | 
| StandardRoute | handleSync(scala.PartialFunction<HttpRequest,HttpResponse> handler)Handle the request using a synchronous partial function. | 
| StandardRoute | handleSync(scala.PartialFunction<HttpRequest,HttpResponse> handler,
          scala.collection.immutable.Seq<Rejection> rejections)Handle the request using a synchronous partial function. | 
| 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.immutable.Seq<Rejection> rejections)Rejects the request with the given rejections. | 
StandardRoute reject()
StandardRoute reject(scala.collection.immutable.Seq<Rejection> rejections)
rejections - (undocumented)StandardRoute redirect(Uri uri, StatusCodes.Redirection redirectionType)
uri - (undocumented)redirectionType - (undocumented)StandardRoute complete(scala.Function0<ToResponseMarshallable> m)
m - (undocumented)<T> StandardRoute complete(StatusCode status, scala.Function0<T> v, Marshaller<T,RequestEntity> m)
status - (undocumented)v - (undocumented)m - (undocumented)<T> StandardRoute complete(StatusCode status, scala.collection.immutable.Seq<HttpHeader> headers, scala.Function0<T> v, Marshaller<T,RequestEntity> m)
status - (undocumented)headers - (undocumented)v - (undocumented)m - (undocumented)StandardRoute failWith(java.lang.Throwable error)
handleExceptions
 directive and its ExceptionHandler.
 error - (undocumented)StandardRoute handle(scala.Function1<HttpRequest,scala.concurrent.Future<HttpResponse>> handler)
handler - (undocumented)StandardRoute handleSync(scala.Function1<HttpRequest,HttpResponse> handler)
handler - (undocumented)StandardRoute handle(scala.PartialFunction<HttpRequest,scala.concurrent.Future<HttpResponse>> handler)
This directive can be used to include external components request processing components defined as PartialFunction (like those provided by pekko-grpc) into a routing tree defined as routes.
When the partial function is not defined for a request, the request is rejected with an empty list of rejections which is equivalent to a "Not Found" rejection.
handler - (undocumented)StandardRoute handle(scala.PartialFunction<HttpRequest,scala.concurrent.Future<HttpResponse>> handler, scala.collection.immutable.Seq<Rejection> rejections)
This directive can be used to include external components request processing components defined as PartialFunction (like those provided by pekko-grpc) into a routing tree defined as routes.
rejections - The list of rejections to reject with if the handler is not defined for a request.
 handler - (undocumented)StandardRoute handleSync(scala.PartialFunction<HttpRequest,HttpResponse> handler)
This directive can be used to include external components request processing components defined as PartialFunction (like those provided by pekko-grpc) into a routing tree defined as routes.
When the partial function is not defined for a request, the request is rejected with an empty list of rejections which is equivalent to a "Not Found" rejection.
handler - (undocumented)StandardRoute handleSync(scala.PartialFunction<HttpRequest,HttpResponse> handler, scala.collection.immutable.Seq<Rejection> rejections)
This directive can be used to include external components request processing components defined as PartialFunction (like those provided by pekko-grpc) into a routing tree defined as routes.
rejections - The list of rejections to reject with if the handler is not defined for a request.
 handler - (undocumented)