BodyParser

object BodyParser

Provides factory for BodyParser.

Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def bytes(maxLength: Int, bufferSize: Int): BodyParser[Array[Byte]]

Gets body parser for byte array.

Gets body parser for byte array.

Value Params
bufferSize

buffer size in bytes

maxLength

maximum length

def file(dest: File, maxLength: Long, bufferSize: Int): BodyParser[File]

Gets body parser for file storage.

Gets body parser for file storage.

Value Params
bufferSize

buffer size in bytes

dest

destination to which message body is stored

maxLength

maximum length in bytes

Note

If dest is a directory, then the parser creates a new file in the specified directory on each parsing invocation. Otherwise, the parser overwrites the specified file on each invocation.

def query(maxLength: Int, bufferSize: Int): BodyParser[QueryString]

Gets body parser for query string.

Gets body parser for query string.

Value Params
bufferSize

buffer size in bytes

maxLength

maximum length in bytes

def string(maxLength: Int, bufferSize: Int): BodyParser[String]

Gets body parser for string.

Gets body parser for string.

Value Params
bufferSize

buffer size in bytes

maxLength

maximum length in bytes