Body class
The body of a request or response.
This tracks whether the body has been read. It's separate from the message because the message may be changed, but each instance should share a notion of whether the body was read.
Constructors
Properties
- contentLength → int?
-
The length of the stream returned by read, or
nullif that can't be determined efficiently.final - encoding → Encoding?
-
The encoding used to encode the stream returned by read, or
nullif no encoding was used.final - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
) → Stream< List< int> > - Returns a Stream representing the body.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited