Create a BodyParser
Create a BodyParser
Example:
val bodySize = BodyParser("Body size") { request => Iteratee.fold(0) { (state, chunk) => state + chunk.size } mapDone(size => Right(size)) }
Create an anonymous BodyParser
Create an anonymous BodyParser
Example:
val bodySize = BodyParser { request => Iteratee.fold(0) { (state, chunk) => state + chunk.size } mapDone(size => Right(size)) }
Helper object to construct
BodyParser
values.