All Downloads are FREE. Search and download functionalities are using the official Maven repository.

skinny.micro.routing.RouteMatcher.scala Maven / Gradle / Ivy

package skinny.micro.routing

import skinny.micro.{ MultiParams, RouteTransformer }

/**
 * A route matcher is evaluated in the context it was created and returns a
 * a (possibly empty) multi-map of parameters if the route is deemed to match.
 */
trait RouteMatcher extends RouteTransformer {

  def apply(requestPath: String): Option[MultiParams]

  def apply(route: Route): Route = Route.appendMatcher(this)(route)

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy