@tunframework/tun
Version:
tun framework for node with typescript
22 lines (21 loc) • 554 B
TypeScript
/// <reference types="node" />
import type { IncomingMessage } from 'http';
export interface TunCookie {
name: string;
value: string;
domain?: string;
path?: string;
maxAge?: number;
expires?: Date;
httpOnly?: boolean;
secure?: boolean;
}
/**
* @internal
* @see TunContext.getRequestCookie
*/
export declare function _getRequestCookieByName(request: IncomingMessage, name: string): string | undefined;
/**
* @internal
*/
export declare function _stringifyTunCookie(tunCookie: TunCookie): string;