UNPKG

@mojojs/core

Version:

Real-time web framework

21 lines (20 loc) 446 B
import { type URL } from 'node:url'; import tough from 'tough-cookie'; /** * Cookie jar class. */ export declare class CookieJar { /** * Cookie storage. */ storage: tough.CookieJar; /** * Load cookies from storage. */ loadCookies(url: URL): Promise<string | null>; /** * Store cookies. */ storeCookies(url: URL, headers: string[]): Promise<void>; _cookieURL(currentURL: URL): string; }