UNPKG

@glandjs/http

Version:

A protocol adapter for HTTP built on top of the Gland architecture solution.

29 lines (28 loc) 852 B
export interface CookieOptions { maxAge?: number; name?: string; secret?: string; path?: string; domain?: string; sameSite?: 'strict' | 'lax' | 'none' | boolean; secure?: boolean; secureProxy?: boolean; httpOnly?: boolean; signed?: boolean; overwrite?: boolean; expires?: Date; } export interface SendOptions { acceptRanges?: boolean | undefined; cacheControl?: boolean | undefined; dotfiles?: 'allow' | 'deny' | 'ignore' | undefined; end?: number | undefined; etag?: boolean | undefined; extensions?: string[] | string | boolean | undefined; immutable?: boolean | undefined; index?: string[] | string | boolean | undefined; lastModified?: boolean | undefined; maxAge?: string | number | undefined; root?: string | undefined; start?: number | undefined; }