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.

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 and cacheOptions.

Typedefs

CacheKeyBuilder = String Function({Map<String, String>? headers, required Uri url})
Key builder to customize keys.
Decrypt = Future<List<int>> Function(List<int> bytes)
Decrypt content/headers method.
Encrypt = Future<List<int>> Function(List<int> bytes)
Encrypt content/headers method.