Instances of this type represent the response from executing a TestRequest.

This class is used to create test expectations on responses from your application code. See also hasStatus and hasResponse. Do not create instances of this class manually - see TestRequest for more details.

Properties

asList → List

The decodedBody typed to a List.

read-only
asMap → Map

The decodedBody typed to a Map.

read-only
body → String

The raw HTTP response body.

read / write
contentLength → int

The Content-Length of the response if provided.

read-only
decodedBody → dynamic

The HTTP response body decoded according to its Content-Type.

read / write
headers → HttpHeaders

HTTP response headers.

read-only
isRedirect → bool

Whether or not the response is a redirect.

read-only
statusCode → int

The status code of the response.

read-only
hashCode → int

The hash code for this object.

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

toString() → String

Returns a string representation of this object.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited