BodyParser

scamper.http.BodyParser
See theBodyParser companion trait
object BodyParser

Provides factory for BodyParser.

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
BodyParser.type

Members list

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 parameters

bufferSize

buffer size in bytes

maxLength

maximum length

Attributes

Note

The bytes returned from parser are decoded.

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

Gets body parser for file storage.

Gets body parser for file storage.

Value parameters

bufferSize

buffer size in bytes

dest

destination to which message body is stored

maxLength

maximum length in bytes

Attributes

Note

If dest is a directory, then the parser creates a new file in specified directory on each parsing invocation; otherwise, the parser overwrites specified file on each invocation. In either case, the bytes in file are decoded.

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

Gets body parser for query string.

Gets body parser for query string.

Value parameters

bufferSize

buffer size in bytes

maxLength

maximum length in bytes

Attributes

def reader(maxLength: Long, bufferSize: Int): BodyParser[BufferedReader]

Gets body parser for buffered reader.

Gets body parser for buffered reader.

Value parameters

bufferSize

buffer size in bytes

maxLength

maximum length in bytes

Attributes

def stream(maxLength: Long, bufferSize: Int): BodyParser[InputStream]

Gets body parser for buffered input stream.

Gets body parser for buffered input stream.

Value parameters

bufferSize

buffer size in bytes

maxLength

maximum length in bytes

Attributes

Note

The input stream returned from parser is decoded.

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

Gets body parser for string.

Gets body parser for string.

Value parameters

bufferSize

buffer size in bytes

maxLength

maximum length in bytes

Attributes