Instances are HTTP responses returned from TestClient.

Instances are created when invoking an execution method with a TestClient.

See methods like expectResponse, hasResponse and hasStatus for usage.

Properties

asList → List

The decodedBody typed to a List.

read-only
asMap → Map

The decodedBody typed to a Map.

read-only
body → String

A String representation of the body.

read-only
bodyDecoder TestResponseBody

HTTP Body of this instance,

final
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-only
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