CacheLookup class final

Result of HttpCache.lookup.

Either response is set and must be used as is, or request must be sent and its outcome given back to HttpCache.onResponse / HttpCache.onError.

Properties

hashCode → int
The hash code for this object.
no setterinherited
isCacheable → bool
Whether the cache handles this request at all (method allowed).
no setter
options → CacheOptions
Options applied to this request.
final
request → BaseRequest
The request to send. It is a copy when the cache adds validators.
final
response → StreamedResponse?
The cached response, or null. If its body fails, send request again.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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