StreamResponse class
Response that writes the stream of bytes provided in body to the
response.
Constructors
-
StreamResponse({Stream<List<int>>? body, dynamic statusCode = 200, String? mimeType, String? charset, List<Cookie>? cookies})
-
-
StreamResponse.fromFile(File file, {dynamic statusCode = 200, String? mimeType, String? charset, List<Cookie>? cookies})
-
Response that writes the contents of
file
to the response.
factory
-
StreamResponse.fromStrings(Stream<String> strings, {dynamic statusCode = 200, String? mimeType, String? charset, Encoding encoding = cnv.utf8, List<Cookie>? cookies})
-
Response that writes the
strings
to the response.
factory
Properties
-
body
↔ Stream<List<int>>?
-
Body of the response
getter/setter pairinherited
-
cookies
→ List<Cookie>
-
Cookies
finalinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
Headers
finalinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
statusCode
↔ int
-
Status code of the response
getter/setter pairinherited