AsyncResponse<BT> class

Implementers

Constructors

AsyncResponse()

Properties

body → FutureOr<BT>
read-only
bytes → FutureOr<List<int>>
read-only
contentLength → FutureOr<int>
read-only
encoding → FutureOr<String>
read-only
headers → FutureOr<Map<String, String>>
read-only
isFailure → FutureOr<bool>
read-only
isRedirect → FutureOr<bool>
read-only
isSuccess → FutureOr<bool>
read-only
mimeType → FutureOr<String>
read-only
persistentConnection → FutureOr<bool>
read-only
reasonPhrase → FutureOr<String>
read-only
request → FutureOr<BaseRequest>
read-only
sender → FutureOr<RouteBase>
read-only
sent → FutureOr<RouteBase>
read-only
statusCode → FutureOr<int>
read-only
toStringResponse → FutureOr<StringResponse>
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

Methods

exact({int statusCode, BT body, List<int> bytes, String mimeType, String encoding, Map<String, String> headers, int contentLength}) AsyncResponse<BT>
expect(List<Checker<Response>> conditions) AsyncResponse<BT>
map<T>(FutureOr<T> func(Response<BT> resp)) → FutureOr<T>
onFailure(ResponseHook<BT> hook) → Future<Response<BT>>
onSuccess(ResponseHook<BT> hook) → Future<Response<BT>>
run(ResponseHook<BT> func) AsyncResponse<BT>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited