sipp
Version:
An Opinionated, High-Productivity MVC Web Framework in TypeScript
10 lines (9 loc) • 573 B
TypeScript
/// <reference types="node" />
import { HTTPRedirect, HTTPResponse, ResponseHeaders, ResponseBody } from './index';
import { Download, Downloadable } from './download';
import { ReadStream } from 'fs';
export declare class HTTPResponder {
reply(response: ResponseBody, headers?: ResponseHeaders, status?: number): Promise<HTTPResponse<any>>;
protected redirect(path: string, status?: 302 | 301, headers?: ResponseHeaders): HTTPRedirect;
protected download(download: Downloadable, fileName?: string, mimetype?: string): Download<string | ReadStream | Buffer>;
}