///
import { IncomingMessage, ServerResponse } from 'http';
import Config from './config';
import { Logger } from './logger';
import * as Snow from '@axihe/snowflake';
import { Connection } from '@kaishen/orm';
import LRUCache = require('lru-cache');
declare class Context {
request: IncomingMessage;
response: ServerResponse;
body: any;
status: number;
headers: object;
method: string;
params: any;
path: string;
url: string;
query: string | null;
env: Config | null;
config: Config | null;
database: {
[propsName: string]: Connection;
} | null;
cache: LRUCache;
logs: Logger;
info: string | null;
'content-type': string | null;
error: {
[propName: number]: string;
};
snow_id: Snow;
static_path: string;
private _code;
set code(val: number);
get code(): number;
constructor(req: IncomingMessage, res: ServerResponse);
}
export default Context;