AlphaXCacheKey class final
Method, URI, request-variant, and optional identity key for a cache entry.
A lookup key contains the request header values available for Vary
matching. A stored entry retains only the values selected by its response's
Vary header. The built-in middleware never places authorization, cookie,
or proxy-authorization values in this map.
Constructors
-
AlphaXCacheKey({required HttpMethod method, required Uri uri, Map<
String, String> requestHeaders = const <String, String>{}, String? identityKey}) - Creates a variant-aware cache key.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- identityKey → String?
-
Opaque caller-provided identity scope for authenticated private caches.
final
- method → HttpMethod
-
HTTP method.
final
-
requestHeaders
→ Map<
String, String> -
Header values available to response-variant matching.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uri → Uri
-
Request URI, including its query parameters.
final
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