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.
15 lines (14 loc) • 571 B
TypeScript
/// <reference types="node" />
import type { RequestHeaders, RequestHeadersValue } from '../types/types';
import type { IncomingMessage } from 'http';
export declare class RequestHeader {
protected data: RequestHeaders;
constructor(req: IncomingMessage);
all(): IterableIterator<[string, RequestHeadersValue]>;
get<T extends RequestHeadersValue>(key: string): T;
has(key: string): boolean;
remove(key: string): void;
set(key: string, value: RequestHeadersValue): void;
getHost(): string | undefined;
getAccept(): string | undefined;
}