AWSStreamedHttpResponse class

A streaming HTTP response.

Inheritance

Constructors

AWSStreamedHttpResponse({required int statusCode, Map<String, String>? headers, required Stream<List<int>> body})
@{macro aws_common.aws_http_streamed_response}

Properties

body Stream<List<int>>
The response's body.
no setteroverride
bodyBytes Future<Uint8List>
The collected bytes of the response body.
no setteroverride
debugNumSplits int
The number of times the body stream has been split.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
The response's headers.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int
The response's status code.
finalinherited

Methods

close() Future<void>
Closes the resource and all connected objects.
override
decodeBody({Encoding encoding = utf8}) Future<String>
Decodes the response body using encoding (defaults to UTF-8).
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
split() Stream<List<int>>
Returns a copy of body in cases where the stream must be read multiple times.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited