UNPKG

zents

Version:

ZenTS is a Node.js & TypeScript MVC-Framework for building rich web applications, released as free and open-source software under the MIT License. It is designed for building web applications with modern tools and design patterns.

19 lines (18 loc) 625 B
/// <reference types="node" /> import type { HeaderValue, HeaderValues } from '../types'; import type { OutgoingHttpHeaders, ServerResponse } from 'http'; export declare class ResponseHeader { private res; constructor(res: ServerResponse); all(): OutgoingHttpHeaders; get(key: string): HeaderValue; has(key: string): boolean; set(key: string, value: HeaderValue): void; multiple(headers: HeaderValues[]): void; setContentType(filenameOrExt: string): boolean; getContentType(): string | null; remove(key: string): void; flush(): void; keys(): string[]; isSend(): boolean; }