JsFetchResponse class

Result of a JsFetchHandler call.

Constructors

JsFetchResponse({required int status, required Stream<List<int>> body, String statusText = '', List<MapEntry<String, String>> headers = const []})
const

Properties

body Stream<List<int>>
Response body. Back-pressure follows JS reads: the runtime pauses this subscription until the script asks for the next chunk.
final
hashCode int
The hash code for this object.
no setterinherited
headers List<MapEntry<String, String>>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status int
final
statusText String
final

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