CacheResponse class
A cache response.
Constructors
Properties
- body → Source
-
Response body.
final
- code → int
-
Returns the HTTP status code.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, List< String> > -
Response headers.
final
- length → int
-
Response length. Returns -1 if the size of the response body is not known in advance.
final
- method → String
-
Http method.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url → String
-
The final real request url (maybe redirect).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromCache(
Snapshot snapshot) → Future< CacheResponse> -
fromResponse(
CacheResponse response, Editor editor) → Future< CacheResponse>