AWSHttpResponse class

A parameterized HTTP response.

Inheritance
Annotations
  • @immutable

Constructors

AWSHttpResponse({required int statusCode, Map<String, String>? headers, List<int>? body})
A parameterized HTTP response.

Properties

body Stream<List<int>>
The response's body.
no setteroverride
bodyBytes List<int>
The collected bytes of the response body.
final
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>
Indicates that no more branches will be requested via split.
decodeBody({Encoding encoding = utf8}) 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 single-subscription stream that's a copy of the input stream.
toString() String
A string representation of this object.
inherited

Operators

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