OptionalhooksReadonlyjarThe underlying cookie jar. Users may call jar.set, jar.get, etc. directly.
Force any pending coalesced persistence to commit and perform one final save. Call this on graceful shutdown (process exit, logout, etc.).
Resolves after the save completes; rejects if the adapter throws. A no-op when no adapter is configured.
Load persisted cookies from the adapter (if configured). Safe to call multiple times; errors from the adapter are swallowed.
OptionalreconfigureRe-applies the plugin's owned policy config after a runtime
engine.config.set() on the matching key (retry, dedupePolicy,
cachePolicy, rateLimitPolicy, or cookies).
Optional — a plugin that doesn't implement it is left untouched by runtime config changes; the engine only invokes it when present.
The full, up-to-date value of the plugin's config key
OptionalreconfigurePre-mutation guard for a runtime config.set() on the plugin's owned
policy key, consulted by the engine's ownership validator after the
ownership check passes but BEFORE the store mutates.
Throw to reject the whole set() call — single-key or multi-key
merge — leaving the store unchanged and skipping reconfigure
entirely. Use this for changes reconfigure can't safely apply in
place (e.g. the cache plugin rejects an adapter swap: its store is
bound to the original adapter at construction).
Optional — a plugin that doesn't implement it accepts any value for its key.
The value the plugin's config key would take on
if this set() call were applied
Return shape of
cookiePlugin()— aFetchPluginaugmented with jar access, adapter lifecycle methods, and a graceful shutdownflush().