MockStreamedResponse class
Constructors
-
MockStreamedResponse(int status, {Stream<List<int>>? byteStream, Encoding? encoding, String? statusText})
-
-
MockStreamedResponse.badGateway({Stream<List<int>>? byteStream, String? statusText})
-
factory
-
MockStreamedResponse.badRequest({Stream<List<int>>? byteStream, String? statusText})
-
factory
-
MockStreamedResponse.forbidden({Stream<List<int>>? byteStream, String? statusText})
-
factory
-
MockStreamedResponse.internalServerError({Stream<List<int>>? byteStream, String? statusText})
-
factory
-
MockStreamedResponse.methodNotAllowed({Stream<List<int>>? byteStream, String? statusText})
-
factory
-
MockStreamedResponse.notFound({Stream<List<int>>? byteStream, String? statusText})
-
factory
-
MockStreamedResponse.notImplemented({Stream<List<int>>? byteStream, String? statusText})
-
factory
-
MockStreamedResponse.ok({Stream<List<int>>? byteStream, String? statusText})
-
factory
-
MockStreamedResponse.unauthorized({Stream<List<int>>? byteStream, String? statusText})
-
factory
Properties
-
body
→ StreamedHttpBody
-
This response's body. Provides access to the response body as a byte
stream.
no setteroverride
-
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 setteroverride
-
encoding
→ Encoding?
-
Encoding that will be used to decode the response body. This encoding is
selected based on contentType's
charset
parameter. If charset
is not
given or the encoding name is unrecognized, latin1 is used by default
(RFC 2616).
no setteroverride
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
Headers sent with the response to the HTTP request.
no setteroverride
-
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.
no setteroverride
-
statusText
→ String
-
Status text of the response to the HTTP request.
'OK', 'Not Found', etc.
no setteroverride