Logos DX
    Preparing search index...

    Interface CookieAdapter

    Pluggable persistence adapter.

    Implement this to persist cookies across FetchEngine instances (e.g., Redis for horizontal scaling, localStorage for browsers, a JSON file for CLIs).

    The jar calls load() once at init and save() after every mutation. For shared-state backends (Redis), load() should always read fresh — the jar will call it before each outgoing request when syncOnRequest is enabled.

    interface CookieAdapter {
        load(): Promise<Cookie[]>;
        save(cookies: Cookie[]): Promise<void>;
    }

    Implemented by

    Index

    Methods

    Methods