Create a BodyParser
Create a BodyParser
Example:
val bodySize = BodyParser.iteratee("Body size") { request => Iteratee.fold(0) { (state, chunk) => state + chunk.size } map(size => Right(size)) }
(Since version 2.5.0) Use apply instead
Create an anonymous BodyParser
Create an anonymous BodyParser
Example:
val bodySize = BodyParser.iteratee { request => Iteratee.fold(0) { (state, chunk) => state + chunk.size } map(size => Right(size)) }
(Since version 2.5.0) Use apply instead
Helper object to construct
BodyParser
values.