StreamedHttpBody class
Representation of an HTTP request body or an HTTP response body where the body is a stream of bytes. Used for large request or response bodies (often when uploading/downloading a file).
Constructors
Properties
-
byteStream
↔ Stream<
List< int> > -
Single subscription stream of chunks of bytes.
getter/setter pair
- contentLength → int?
-
The size of this request/response body in bytes.
final
- contentType → MediaType?
-
The content type of this request/response. Includes the mime-type and
parameters such as charset.
final
- encoding → Encoding?
-
Encoding used to encode/decode this request/response body. Encoding is
selected by parsing the content-type from the headers.
no setter
- 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
-
toBytes(
) → Future< Uint8List> - Listens to this streamed request/response body and combines all chunks of bytes into a single list of bytes.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited