1 |
|
2 | import { IncomingMessage, ServerResponse, IncomingHttpHeaders, Server } from 'http';
|
3 | export declare type MicriHandler<OptsType = any> = (req: IncomingMessage, res: ServerResponse, opts?: OptsType) => any;
|
4 | export { IncomingMessage, ServerResponse, IncomingHttpHeaders, Server };
|
5 | export interface IncomingOpts {
|
6 | limit?: string | number;
|
7 | encoding?: string | null;
|
8 | }
|
9 | export interface RawBodyError extends Error {
|
10 | limit?: number;
|
11 | length?: number;
|
12 | expected?: number;
|
13 | received?: number;
|
14 | encoding?: string;
|
15 | status: number;
|
16 | statusCode: number;
|
17 | type: string;
|
18 | }
|