MutableBody class abstract base

Inheritance

Constructors

MutableBody()

Properties

contentLength int?
The length of the body in bytes.
no setterinherited
data → dynamic
no setterinherited
encoding Encoding
The encoding of the body.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
isNull bool
no setterinherited
mimeType String?
The mime type of the body.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(Object? data) → void
Adds the given data to the body.
headers(ReadOnlyHeaders? requestHeaders) ReadOnlyHeaders
Resolves the headers based on the body.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read() Stream<List<int>>?
Reads the body as a stream of bytes.
inherited
replace(Object? data) → void
Replaces the entire body with the given data.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator []=(String key, Object? data) → void
Adds/Replaces a single key in the body with the given data.