BodyDecoder

Provides access to decoded message body.

Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def maxLength: Long

Gets maximum length of message body.

Gets maximum length of message body.

Concrete methods

def decode(message: HttpMessage): InputStream

Gets decoded message body.

Gets decoded message body.

Value Params
message

HTTP message

Note

The input stream throws ReadLimitExceeded if the decoder reads beyond maxLength of message body.

def withDecode[T](message: HttpMessage)(f: InputStream => T): T

Passes decoded message body to supplied function.

Passes decoded message body to supplied function.

Value Params
f

function

message

HTTP message

Returns

applied function value

Note

The input stream throws ReadLimitExceeded if the decoder reads beyond maxLength of message body.