BodyDecoder

scamper.http.BodyDecoder
See theBodyDecoder companion trait
object BodyDecoder

Provides factory for BodyDecoder.

Attributes

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

Members list

Value members

Concrete methods

def apply(maxLength: Long): BodyDecoder

Creates decoder with specified maximum length.

Creates decoder with specified maximum length.

Value parameters

maxLength

maximum length of message body

Attributes

def decode(message: HttpMessage, maxLength: Long): InputStream

Gets decoded message body.

Gets decoded message body.

Value parameters

maxLength

maximum length of message body

message

HTTP message

Attributes

Note

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