Properties
-
body
↔ Body
-
The streaming body of the message.
getter/setter pair
-
encoding
→ Encoding?
-
Returns the encoding specified in the Body-Type (Content-Type header), or null if not specified.
no setter
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
The HTTP headers associated with this message.
final
-
isEmpty
→ bool
-
Determines if the body is empty by checking the content length.
no setter
-
mimeType
→ MimeType?
-
Returns the MIME type from the Body-Type (Content-Type header), if available.
no setter
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith({Body? body})
→ Message
-
Creates a new message by copying existing values and applying specified changes.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
read({int? maxLength})
→ Stream<Uint8List>
-
Reads the body as a stream of bytes. Can only be called once.
-
readAsString({Encoding? encoding, int? maxLength})
→ Future<String>
-
Reads the body as a string, decoding it using the specified or detected encoding.
Defaults to utf8 if no encoding is provided or detected.
-
toString()
→ String
-
A string representation of this object.
inherited