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
- varyHeader → const String
Properties
- token → RegExp
-
An HTTP token.
final
- whitespace → RegExp
-
A regular expression matching any number of
_lwsproductions 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
statusCodeandcacheOptions.
Typedefs
-
CacheKeyBuilder
= String Function({Object? body, Map<
String, String> ? headers, required Uri url}) - Key builder to customize keys.
-
Decrypt
= Future<
List< Function(List<int> >int> bytes) - Decrypt content/headers method.
-
Encrypt
= Future<
List< Function(List<int> >int> bytes) - Encrypt content/headers method.