HttpxCachePolicy enum

Inheritance
Available extensions

Values

standard → const HttpxCachePolicy

Standard behaviour.

straightToNetwork → const HttpxCachePolicy

Behaves as if there is no HTTP cache for the request. It will still update the cache with the response.

ignoreDirectives → const HttpxCachePolicy

Uses any response in the HTTP cache matching the request, not paying attention to Pragma / Cache Control directives in both the request and the cached response(s).

staleWhileRevalidate → const HttpxCachePolicy

Enable stale-while-revalidate even for cached responses which do not have the directive (or if it's past its lifetime). It does not bypass Pragma / Cache Control directives (no-cache and/or min-fresh directives may prevent revalidation in background).

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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

Constants

values → const List<HttpxCachePolicy>
A constant List of the values in this enum, in order of their declaration.