StreamedResponse class
An HTTP response where the entire contents of the response body are not immediately known. Meta data about a response to an HTTP request (headers, status, statusText) are available immediately and synchronously. The response body is available as a stream of bytes.
- Inheritance
-
- Object
- BaseResponse
- StreamedResponse
- Implementers
Constructors
Properties
- body → StreamedHttpBody
-
This response's body. Provides access to the response body as a byte
stream.
no setter
- contentLength → int?
-
Gets and sets the content-length of the request, in bytes. If the size of
the request is not known in advance, set this to null.
no setteroverride
- contentType → MediaType?
-
Content-type of this request.
no setterinherited
- encoding → Encoding?
-
Encoding that will be used to decode the response body. This encoding is
selected based on contentType's
charset
parameter. Ifcharset
is not given or the encoding name is unrecognized, latin1 is used by default (RFC 2616).no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
Headers sent with the response to the HTTP request.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → int
-
Status code of the response to the HTTP request.
200, 404, etc.
finalinherited
- statusText → String
-
Status text of the response to the HTTP request.
'OK', 'Not Found', etc.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
replace(
{Stream< List< ? byteStream, int? status, String? statusText, Map<int> >String, String> ? headers}) → StreamedResponse - Create a new StreamedResponse using all the values from this instance except for the parameters specified.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited