StringResponse class

Implemented types

Constructors

StringResponse({int statusCode, 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})
StringResponse.from(Response resp, {@required RouteBase sender, @required RouteBase sent})
factory

Properties

body → String
read-only, override
bytes → List<int>
final
contentLength → int
final
cookies → Map<String, ClientCookie>
read-only
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

decodeJson<T>([T convert(Map d)]) → T
decodeJsonList<T>([T convert(Map d)]) → List<T>
exact({int statusCode, String body, List<int> bytes, String mimeType, String encoding, Map<String, String> headers, int contentLength}) StringResponse
override
expect(List<Checker<Response>> conditions) StringResponse
override
json<T>([T convert(Map d)]) TResponse<T>
jsonList<T>([T convert(Map d)]) TResponse<List<T>>
map<T>(FutureOr<T> func(StringResponse resp)) → T
override
onFailure(ResponseHook<String> func) → Future<StringResponse>
override
onSuccess(ResponseHook<String> func) → Future<StringResponse>
override
run(ResponseHook<String> func) StringResponse
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