object BodyParser
Ordering
- Alphabetic
- By Inheritance
Inherited
- BodyParser
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- def apply[T](debugName: String)(f: () => Accumulator[ByteString, Either[Result, T]]): BodyParser[T]
- def apply[T](f: () => Accumulator[ByteString, Either[Result, T]]): BodyParser[T]
- def parseBody[A](parser: BodyParser[A], request: Request[A], next: (Request[A]) => Future[Result])(implicit ec: ExecutionContext): Future[Result]
When body parsing was deferred, this method can be used to eventually parse the body for a given request.
When body parsing was deferred, this method can be used to eventually parse the body for a given request. If this method was called already for a request (meaning the body was finally parsed already), it won't do anything anymore and just pass the request through.
- parser
the body parser to use to parse the requests' body
- request
the request whose body was not parsed yet (because parsing was explicitly deferred)
- next
called after the body was parsed
- ec
The context to execute the supplied next action with. The context is prepared on the calling thread.
- returns
the result to be sent to the client
Helper object to construct
BodyParser
values.