http_cache_core library
Classes
- BackupCacheStore
- A store saving responses in a dedicated primary store and secondary store.
- BaseRequest
- Abtract request adapter
- BaseResponse
- Abtract response adapter
- CacheCipher
- CacheControl
- Cache-Control header subset representation
- CacheOptions
- Options to apply to handle request and cache behaviour.
- CacheResponse
- Response representation from cache store.
- CacheStore
- Definition of store
- CacheStrategy
- Cache strategy result containing either a request or a cached response but not both.
- CacheStrategyFactory
- A factory class for creating cache strategies based on HTTP requests and responses.
- HttpDate
- MemCacheStore
- A store saving responses in a dedicated memory LRU map.
Enums
- CachePolicy
- Policy to handle request behaviour.
- CachePriority
- Cache priority.
Constants
- ageHeader → const String
- cacheControlHeader → const String
- contentLocationHeader → const String
- contentTypeHeader → const String
- dateHeader → const String
- etagHeader → const String
- expiresHeader → const String
- ifModifiedSinceHeader → const String
- ifNoneMatchHeader → const String
- jsonContentType → const String
- lastModifiedHeader → const String
- tokenChars → const String
- "token" as defined in RFC 2616, 2.2 See https://datatracker.ietf.org/doc/html/rfc2616#section-2.2
- varyHeader → const String
Properties
- headerSplitter → RegExp
-
Splits comma-seperated header values.
final
- setCookieSplitter → RegExp
-
Splits comma-seperated "Set-Cookie" header values.
final
- token → RegExp
-
An HTTP token.
final
- whitespace → RegExp
-
A regular expression matching any number of
_lws
productions in a row.final
Functions
-
getDateHeaderValue(
String? headerValue) → DateTime? -
getExpiresHeaderValue(
String? headerValue) → DateTime? -
isCacheCheckAllowed(
int? statusCode, CacheOptions cacheOptions) → bool -
Checks if we can try to resolve cached response
against given
statusCode
andcacheOptions
.