AcpAffinityCookieStore class final

Minimal URI-scoped storage for server-issued ACP routing-affinity cookies.

This store is deliberately not an authentication cookie jar. It implements the scope and expiry rules needed to avoid sending routing cookies to an unrelated URI, but it does not expose cookie values, persist them, execute browser cookie policy, or turn cookies into authorization decisions.

Constructors

AcpAffinityCookieStore({DateTime clock()?, AcpAffinityCookieDomainPolicy? domainPolicy, int maximumCookies = 64, int maximumCookieCharacters = 4096})
Creates an empty in-memory store.

Properties

hashCode int
The hash code for this object.
no setterinherited
length int
The number of currently unexpired cookies.
no setter
maximumCookieCharacters int
Maximum characters accepted in one server cookie header value.
final
maximumCookies int
Maximum managed cookies retained by this store.
final
redactedSummary String
A safe diagnostic summary that never includes cookie names or values.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
Removes all managed cookies.
cookieHeader(Uri requestUri, {String? callerCookieHeader}) String?
Builds a Cookie request header for requestUri.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
store(Uri responseUri, Iterable<String> setCookieHeaders) → void
Stores one or more Set-Cookie header values received from responseUri.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

splitSetCookieHeader(String header) Iterable<String>
Splits a potentially combined Set-Cookie header without splitting the comma inside an Expires date.