AsyncStringResponse class

Inheritance
Implemented types

Constructors

AsyncStringResponse(Future<StringResponse> inner)
AsyncStringResponse.from(Future<Response> inner, {@required RouteBase sender, @required RouteBase sent})

Properties

body → Future<String>
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

decodeJson<T>([T convert(Map d)]) → Future<T>
decodeJsonList<T>([T convert(Map d)]) → Future<List<T>>
exact({int statusCode, String body, List<int> bytes, String mimeType, String encoding, Map<String, String> headers, int contentLength}) AsyncStringResponse
override
expect(List<Checker<Response>> conditions) AsyncStringResponse
override
json<T>([T convert(Map d)]) AsyncTResponse<T>
jsonList<T>([T convert(Map d)]) AsyncTResponse<List<T>>
map<T>(FutureOr<T> func(StringResponse resp)) → Future<T>
override
onFailure(ResponseHook<String> hook) AsyncStringResponse
override
onSuccess(ResponseHook<String> hook) AsyncStringResponse
override
run(ResponseHook<String> func) AsyncStringResponse
Runs func with Response object after request completion
override
asStream() → Stream<StringResponse>
Creates a Stream containing the result of this future.
inherited
catchError(Function onError, {bool test(Object error)}) → Future<StringResponse>
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(StringResponse value), {Function onError}) → Future<S>
Register callbacks to be called when this future completes.
inherited
timeout(Duration timeLimit, {dynamic onTimeout()}) → Future<StringResponse>
Time-out the future computation after timeLimit has passed.
inherited
toString() → String
Returns a string representation of this object.
inherited
whenComplete(dynamic action()) → Future<StringResponse>
Registers a function to be called when this future completes.
inherited

Operators

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