Reads the data from given request req
.
Reads the data from given request req
.
the request type
the request to read
Flat-maps this request reader to the given function A => Future[B]
.
Flat-maps this request reader to the given function A => Future[B]
.
Flat-maps this request reader to the given function A => RequestReader[B]
.
Flat-maps this request reader to the given function A => RequestReader[B]
.
A RequestItem read by this request reader.
A RequestItem read by this request reader.
Maps this request reader to the given function A => B
.
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.
Applies the given filter p
to this request reader.
Composes this request reader with the given that
request reader.
Composes this request reader with the given that
request reader.
A
RequestReader
that reads the request body, interpreted as aString
, or throws aNotPresent
exception.(Since version 0.5.0) use RequiredBody