Request
export declare class Request {
onDestroy(callback: (...args: any[]) => void): void;
getConnection(): IConnection;
getCookies(): {
[key: string]: string;
};
getCookie(name: string): string;
setCookie(key: string, value: string, expires?: number | Date | string, path?: string, domain?: string, isHttpOnly?: boolean): void;
getRequestHeaders(): any;
getRequestHeader(name: string): any;
setResponseHeader(name: string, value: string | string[]): void;
setContentType(value: string): void;
getParams(): Object;
getParam(name: string): string;
getMethod(): Methods;
getRoute(): string;
getBody(): Buffer;
getBodyAsMultiPart(encoding?: string): Array<MultiPartField | MultiPartFile>;
setStatusCode(code: Status | number): void;
stopChain(): void;
redirectTo(url: string, code: Status | number): void;
}