UNPKG

tools-mock

Version:

A node.js mock tool to quickly start the server via http

11 lines (10 loc) 378 B
/// <reference types="node" /> import * as http from 'http'; import CMockConfig from './CMockConfig'; export default class CMockRouter { CMockConfig: CMockConfig; constructor(CMockConfig: CMockConfig); controller: (req: http.IncomingMessage, res: http.ServerResponse<http.IncomingMessage> & { req: http.IncomingMessage; }, data: any) => Promise<void>; }