Reads the data from given request req
.
Reads the data from given request req
.
the request to read
A RequestItem read by this request reader.
Flat-maps this request reader to the given function A => Future[B]
.
Flat-maps this request reader to the given function A => PRequestReader[R, B]
.
Lifts this request reader into one that always succeeds, with an empty option representing failure.
Maps this request reader to the given function A => B
.
Validates the result of this request reader using a predefined rule
.
Validates the result of this request reader 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
a request reader that will return the value of this reader if it is valid. Otherwise the future fails with a NotValid error.
Validates the result of this request reader using a predicate
.
Validates the result of this request reader using a predicate
. The rule is used for error reporting.
text describing the rule being validated
returns true if the data is valid
a request reader that will return the value of this reader if it is valid. Otherwise the future fails with a NotValid error.
Validates the result of this request reader using a predefined rule
.
Validates the result of this request reader 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
a request reader that will return the value of this reader if it is valid. Otherwise the future fails with a NotValid error.
Validates the result of this request reader using a predicate
.
Validates the result of this request reader using a predicate
. The rule is used for error reporting.
text describing the rule being validated
returns false if the data is valid
a request reader that will return the value of this reader if it is valid. Otherwise the future fails with a NotValid error.
Applies the given filter p
to this request reader.
A polymorphic request reader (a reader monad) that reads a com.twitter.util.Future of
A
from the request of typeR
.