Uses the provided function to transform the BodyParser’s computed result into another BodyParser to continue with.
Uses the provided function to transform the BodyParser’s computed result into another BodyParser to continue with.
On Done of the Iteratee produced by this BodyParser, the result is passed to the provided function, and the resulting BodyParser is given the same RequestHeader and the Iteratee produced is used to continue consuming input.
the function to produce a new body parser from the result of this body parser
The context to execute the supplied function with. The context is prepared on the calling thread.
the transformed body parser
Like flatMap but allows the flatMap function to execute asynchronously.
Like flatMap but allows the flatMap function to execute asynchronously.
the async function to produce a new body parser from the result of this body parser
The context to execute the supplied function with. The context is prepared on the calling thread.
the transformed body parser
Uses the provided function to transform the BodyParser's computed result when the request body has been parsed.
Uses the provided function to transform the BodyParser's computed result when the request body has been parsed.
a function for transforming the computed result
The context to execute the supplied function with. The context is prepared on the calling thread.
the transformed body parser
Like map but allows the map function to execute asynchronously.
Like map but allows the map function to execute asynchronously.
the async function to map the result of the body parser
The context to execute the supplied function with. The context prepared on the calling thread.
the transformed body parser
Uses the provided function to validate the BodyParser's computed result when the request body has been parsed.
Uses the provided function to validate the BodyParser's computed result when the request body has been parsed.
The provided function can produce either a direct result, which will short circuit any further Action, or a value of type B.
Example:
def validateJson[A : Reads] = parse.json.validate( _.validate[A].asEither.left.map(e => BadRequest(JsError.toFlatJson(e))) )
the function to validate the computed result of this body parser
The context to execute the supplied function with. The context is prepared on the calling thread.
the transformed body parser
Like validate but allows the validate function to execute asynchronously.
Like validate but allows the validate function to execute asynchronously.
the async function to validate the computed result of this body parser
The context to execute the supplied function with. The context is prepared on the calling thread.
the transformed body parser
A body parser parses the HTTP request body content.
the body content type