AsyncTResponse<BT> class

Inheritance
Implemented types

Constructors

AsyncTResponse(Future<Response<BT>> inner)

Properties

body → Future<BT>
read-only, override
bytes → Future<List<int>>
read-only, override
contentLength → Future<int>
read-only, override
encoding → Future<String>
read-only, override
headers → Future<Map<String, String>>
read-only, override
isFailure → Future<bool>
read-only, override
isRedirect → Future<bool>
read-only, override
isSuccess → Future<bool>
read-only, override
mimeType → Future<String>
read-only, override
persistentConnection → Future<bool>
read-only, override
reasonPhrase → Future<String>
read-only, override
request → Future<BaseRequest>
read-only, override
sender → Future<RouteBase>
read-only, override
sent → Future<RouteBase>
read-only, override
statusCode → Future<int>
read-only, override
toStringResponse AsyncStringResponse
read-only, override
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}) AsyncTResponse<BT>
override
expect(List<Checker<Response>> conditions) AsyncTResponse<BT>
override
map<T>(FutureOr<T> func(Response<BT> resp)) → Future<T>
override
onFailure(ResponseHook<BT> hook) AsyncTResponse<BT>
override
onSuccess(ResponseHook<BT> hook) AsyncTResponse<BT>
override
run(ResponseHook<BT> func) AsyncTResponse<BT>
Runs func with Response object after request completion
override
asStream() → Stream<Response<BT>>
Creates a Stream containing the result of this future.
inherited
catchError(Function onError, {bool test(Object error)}) → Future<Response<BT>>
Handles errors emitted by this Future.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
then<S>(FutureOr<S> onValue(Response<BT> value), {Function onError}) → Future<S>
Register callbacks to be called when this future completes.
inherited
timeout(Duration timeLimit, {dynamic onTimeout()}) → Future<Response<BT>>
Time-out the future computation after timeLimit has passed.
inherited
toString() → String
Returns a string representation of this object.
inherited
whenComplete(dynamic action()) → Future<Response<BT>>
Registers a function to be called when this future completes.
inherited

Operators

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