Interface RouteConcatenation

    • Method Detail

      • concat

        scala.Function1<RequestContext,​scala.concurrent.Future<RouteResult>> concat​(scala.collection.immutable.Seq<scala.Function1<RequestContext,​scala.concurrent.Future<RouteResult>>> routes)
        Tries the supplied routes in sequence, returning the result of the first route that doesn't reject the request. This is an alternative to direct usage of the infix ~ operator. The ~ can be prone to programmer error, because if it is omitted, the program will still be syntactically correct, but will not actually attempt to match multiple routes, as intended.

        routes - subroutes to concatenate
        the concatenated route