ResponseBody class

Constructors

ResponseBody(Stream<Uint8List> stream, int? statusCode, {Map<String, List<String>> headers = const {}, String? statusMessage, bool isRedirect = false, List<RedirectRecord>? redirects})
ResponseBody.fromBytes(List<int> bytes, int? statusCode, {Map<String, List<String>> headers = const {}, String? statusMessage, bool isRedirect = false})
ResponseBody.fromString(String text, int? statusCode, {Map<String, List<String>> headers = const {}, String? statusMessage, bool isRedirect = false})

Properties

extra Map<String, dynamic>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, List<String>>
the response headers
getter/setter pair
isRedirect bool
Whether this response is a redirect.
final
redirects List<RedirectRecord>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
Http status code
getter/setter pair
statusMessage String?
Returns the reason phrase associated with the status code. The reason phrase must be set before the body is written to. Setting the reason phrase after writing to the body.
getter/setter pair
stream Stream<Uint8List>
The response stream
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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