BodyDecoder class Null safety
Decodes bytes according to contentType.
See RequestBody for a concrete implementation.
- Implementers
Constructors
-
BodyDecoder(Stream<
List< bodyByteStream)int> >
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
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- 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
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
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 -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited