BodyDecoder class

Decodes bytes according to contentType.

See RequestBody for a concrete implementation.

Implementers

Constructors

BodyDecoder(Stream<List<int>> bodyByteStream)

Properties

bytes → Stream<List<int>>
The stream of bytes to decode. [...]
read-only
contentType → ContentType
Determines how bytes get decoded. [...]
read-only
decodedType → Type
The type of data bytes was decoded into. [...]
read-only
hasBeenDecoded → bool
Whether or not bytes have been decoded yet. [...]
read-only
isEmpty → bool
Whether or not bytes is empty. [...]
read-only
originalBytes → List<int>
The raw bytes of this request body. [...]
read-only
retainOriginalBytes ↔ bool
Whether or not bytes are available as a list after decoding has occurred. [...]
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

as<T>() → T
Returns previously decoded object as T. [...]
decode<T>() → Future<T>
Decodes this object's bytes as T. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited