An universal extractor that extracts some value of type A
if it's possible to fetch the value from the string.
A type class that allows the Router to be mapped to either A => B
or A => Future[B]
.
We need a version of shapeless.ops.adjoin.Adjoin that provides slightly different behavior in
the case of singleton results (we simply return the value, not a singleton HList
).
An exception, which is thrown by router in case of missing route r
.
A router that extracts some value of the type A
from the given route.
A collection of Router combinators.
An extractor that extracts a value of type Seq[A]
from the tail of the route.
Represents a conversion from a router returning a result type A
to a
Finagle service from a request-like type R
to a com.twitter.finagle.httpx.Response.
Represents a conversion from a router returning a result type A
to a
Finagle service from a request-like type R
to a com.twitter.finagle.httpx.Response.
A Router that skips all path parts.
An identity Router.
Provides extension methods for Router to support coproduct and path syntax.
A combinator that wraps the given Router with Basic HTTP Auth, configured with credentials user
and
password
.
A combinator that wraps the given Router with Basic HTTP Auth, configured with credentials user
and
password
.
A Router that extract a boolean value from the route.
A Router that extract a boolean tail from the route.
A combinator that wraps the given Router with additional check of the HTTP method.
A combinator that wraps the given Router with additional check of the HTTP method. The resulting Router
succeeds on the request only if its method is CONNECT
and the underlying router succeeds on it.
A combinator that wraps the given Router with additional check of the HTTP method.
A combinator that wraps the given Router with additional check of the HTTP method. The resulting Router
succeeds on the request only if its method is DELETE
and the underlying router succeeds on it.
A combinator that wraps the given Router with additional check of the HTTP method.
A combinator that wraps the given Router with additional check of the HTTP method. The resulting Router
succeeds on the request only if its method is GET
and the underlying router succeeds on it.
A combinator that wraps the given Router with additional check of the HTTP method.
A combinator that wraps the given Router with additional check of the HTTP method. The resulting Router
succeeds on the request only if its method is HEAD
and the underlying router succeeds on it.
A Router that extract an integer value from the route.
A Router that extract an integer tail from the route.
A Router that extract a long value from the route.
A Router that extract a long tail from the route.
A combinator that wraps the given Router with additional check of the HTTP method.
A combinator that wraps the given Router with additional check of the HTTP method. The resulting Router
succeeds on the request only if its method is OPTIONS
and the underlying router succeeds on it.
A combinator that wraps the given Router with additional check of the HTTP method.
A combinator that wraps the given Router with additional check of the HTTP method. The resulting Router
succeeds on the request only if its method is PATCH
and the underlying router succeeds on it.
A combinator that wraps the given Router with additional check of the HTTP method.
A combinator that wraps the given Router with additional check of the HTTP method. The resulting Router
succeeds on the request only if its method is POST
and the underlying router succeeds on it.
A combinator that wraps the given Router with additional check of the HTTP method.
A combinator that wraps the given Router with additional check of the HTTP method. The resulting Router
succeeds on the request only if its method is PUT
and the underlying router succeeds on it.
A Router that extract a string value from the route.
A Router that extract a string tail from the route.
A combinator that wraps the given Router with additional check of the HTTP method.
A combinator that wraps the given Router with additional check of the HTTP method. The resulting Router
succeeds on the request only if its method is TRACE
and the underlying router succeeds on it.
This package contains various of functions and types that enable _router combinators_ in Finch. Finch's route.Router is an abstraction that is responsible for routing the HTTP requests using their method and path information.