Response class

Implemented types
Available extensions

Constructors

Response(Object? body, {int? status, String? statusText, Headers? headers})
Response.error()
factory
Response.json(Object? data, {int? status, String? statusText, Headers? headers})
factory
Response.redirect(Uri url, [int? status = 302])
factory

Properties

body Stream<List<int>>?
no setteroverride
bodyUsed bool
no setteroverride
delegate → Response

Available on Response, provided by the ResponseExtension extension

no setter
hashCode int
The hash code for this object.
no setterinherited
headers Headers
no setter
ok bool
no setter
redirected bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status int
no setter
statusText String
no setter
type ResponseType
no setter
url Uri
no setter

Methods

arrayBuffer() Future<ByteBuffer>
override
blob() Future<Object>
override
clone() Response
formData() Future<FormData>
override
json() Future<Object?>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
text() Future<String>
override
toString() String
A string representation of this object.
inherited

Operators

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