Response<T> class

Implemented types
Implementers

Constructors

Response()

Properties

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

Operators

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

Constants

defaultCharset → const String
'utf-8'
defaultContentType → const String
'application/octet-stream;charset=utf-8'