featherbed
featherbed copied to clipboard
toService API
This commit makes the following changes:
- Enable a new preferred API,
toService
. This API allows for creating a service from a request. Rather than specifying content up-front, you can create a functionContent => Future[Result]
using thetoService
API, which gives a reusable function from a request specification. - Major refactoring of types. All request types have been unified to a single
HTTPRequest
type, which is not path-dependent. AClientRequest
type also wraps this with a provided client. - Functionality is implemented mainly through
Filter
s now, which composes better with the rest of the finagle ecosystem.