Alters any object within a toFuture method.
Alters any object within a toFuture method.
an object type
A REST API endpoint that primary defines a route and might be converted into a finagled service with toService method.
A REST API endpoint that primary defines a route and might be converted into a finagled service with toService method.
a response type
Alters underlying filter within afterThat methods composing a filter with a given endpoint or withing a next filter.
Alters underlying service within afterThat method composing a service with a given filter.
Alters underlying service within afterThat method composing a service with a given filter.
a input response type
Alters any throwable with a toFutureException method.
A companion object for Endpoint
Allow for the creation of Endpoints without an explict service
Allow for the creation of Endpoints without an explict service
Endpoint { Get -> Root / "hello" => Ok("world").toFuture }
The future to implicitly convert.
The service generated by ignoring the Req and returning the Future[Rep]
* Hi! I'm Finch.io - a super-tiny library atop of Finagle that makes the development of RESTFul API services more pleasant and slick.
I'm trying to follow the principles of my elder brother and keep the things as composable as possible.
(a) In order to mark the difference between filters and facets and show the direction of a data-flow, the facets are composed by ! operator within a reversed order:
val s = service ! facetA ! facetB
Note: facets don't change the request type.
(b) Endpoints might be treated as partial functions over the routes, so they may be composed together with orElse operator:
val r = endpointA orElse endpointB
(d) Endpoints may also be composed with filters by using the ! operator in a familiar way:
val r = authorize ! endpoint
Note: authorize changes the request type.
(e) Finagle filters may also be composed with ! operator:
val f = filterA ! filterB ! filterC
Have fun writing a reusable and scalable code with me!
- https://github.com/finagle/finch - http://vkostyukov.ru