ResponseBody class

Constructors

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

Properties

extra Map<String, dynamic>
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
headers Map<String, List<String>>
the response headers
read / write
isRedirect bool
Whether this response is a redirect.
final
redirects List<RedirectRecord>
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
statusCode int
Http status code
read / write
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.
read / write
stream Stream<Uint8List>
The response stream
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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