Composes this endpoint with the given Endpoint.
Composes this endpoint with another in such a way that coproducts are flattened.
Composes this endpoint with another in such a way that coproducts are flattened.
Composes this endpoint with the given Endpoint.
Composes this endpoint with the given Endpoint.
Composes this endpoint with the given that
endpoint.
Composes this endpoint with the given that
endpoint. The resulting endpoint will succeed only
if both this and that
endpoints succeed.
Maps this endpoint to Endpoint[A => B]
.
Maps this endpoint to Endpoint[A => B]
.
Runs this endpoint.
Runs this endpoint.
Maps this endpoint to either A => Output[B]
or A => Output[Future[B]]
.
Maps this endpoint to either A => Output[B]
or A => Output[Future[B]]
.
Recovers from any exception occurred in this endpoint by creating a new endpoint that will handle any matching throwable from the underlying future.
Recovers from any exception occurred in this endpoint by creating a new endpoint that will handle any matching throwable from the underlying future.
Lifts this endpoint into one that always succeeds, with an empty Option
representing failure.
Lifts this endpoint into one that always succeeds, with an empty Option
representing failure.
Maps this endpoint to the given function A => B
.
Maps this endpoint to the given function A => B
.
Maps this endpoint to the given function A => Future[B]
.
Maps this endpoint to the given function A => Future[B]
.
Maps this endpoint to the given function A => Output[B]
.
Maps this endpoint to the given function A => Output[B]
.
Maps this endpoint to the given function A => Future[Output[B]]
.
Maps this endpoint to the given function A => Future[Output[B]]
.
Recovers from any exception occurred in this endpoint by creating a new endpoint that will handle any matching throwable from the underlying future.
Recovers from any exception occurred in this endpoint by creating a new endpoint that will handle any matching throwable from the underlying future.
Validates the result of this endpoint using a predefined rule
.
Validates the result of this endpoint using a predefined rule
. This method allows for rules
to be reused across multiple request readers.
the predefined ValidationRule that will return true if the data is valid
an endpoint that will return the value of this reader if it is valid. Otherwise the future fails with an Error.NotValid error.
Validates the result of this endpoint using a predicate
.
Validates the result of this endpoint using a predicate
. The rule is used for error
reporting.
text describing the rule being validated
returns true if the data is valid
an endpoint that will return the value of this reader if it is valid. Otherwise the future fails with an Error.NotValid error.
Validates the result of this endpoint using a predefined rule
.
Validates the result of this endpoint using a predefined rule
. This method allows for rules
to be reused across multiple request readers.
the predefined ValidationRule that will return false if the data is valid
an endpoint that will return the value of this reader if it is valid. Otherwise the future fails with a Error.NotValid error.
Validates the result of this endpoint using a predicate
.
Validates the result of this endpoint using a predicate
. The rule is used for error reporting.
text describing the rule being validated
returns false if the data is valid
an endplint that will return the value of this reader if it is valid. Otherwise the future fails with a Error.NotValid error.
Converts this endpoint to a Finagle service Request => Future[Response]
.
Converts this endpoint to a Finagle service Request => Future[Response]
.
Sequentially composes this endpoint with the given that
endpoint.
Sequentially composes this endpoint with the given that
endpoint. The resulting endpoint will
succeed if either this or that
endpoints are succeed.
An extractor that extracts a value of type
Seq[A]
from the tail of the route.