TResponse<BT> class

Implemented types

Constructors

TResponse({int statusCode, BT body, List<int> bytes, Map<String, String> headers, bool isRedirect, bool persistentConnection, String reasonPhrase, int contentLength, BaseRequest request, @required RouteBase sender, @required RouteBase sent, String mimeType, String encoding})

Properties

body → BT
final
bytes → List<int>
final
contentLength → int
final
encoding → String
final
headers → Map<String, String>
final
isFailure → bool
read-only, override
isRedirect → bool
final
isSuccess → bool
read-only, override
mimeType → String
final
persistentConnection → bool
final
reasonPhrase → String
final
request BaseRequest
final
sender RouteBase
final
sent RouteBase
final
statusCode → int
final
toStringResponse StringResponse
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}) TResponse<BT>
override
expect(List<Checker<Response>> conditions) TResponse<BT>
override
map<T>(FutureOr<T> func(Response<BT> resp)) → T
override
onFailure(ResponseHook<BT> func) → Future<TResponse<BT>>
override
onSuccess(ResponseHook<BT> func) → Future<TResponse<BT>>
override
run(ResponseHook<BT> func) TResponse<BT>
override
toString() → String
Returns a string representation of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited

Operators

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