Interface HttpContext

Framework-neutral HTTP context required by SessionKit.

interface HttpContext {
    getCookie(name: string): null | string;
    setCookie(
        name: string,
        value: string,
        options: CookieOptions & { maxAgeSeconds?: number },
    ): void;
    clearCookie(name: string, options: CookieOptions): void;
    setAuth<T>(value: T): void;
    getAuth<T>(): null | T;
    status(code: number): void;
    json(body: unknown): void;
}

Methods