openapi-connect
Version:
Base for microservices around OpenAPI/Swagger
8 lines (7 loc) • 449 B
TypeScript
/// <reference types="node" />
import { IOptions } from '../options';
export declare const collectMetrics: (options: IOptions) => (req: any, res: any, time: any) => void;
export declare function collectMetricsMiddlewares(options: IOptions): {
handler: (request: import("http").IncomingMessage, response: import("http").ServerResponse, callback: (err: any) => void) => any;
errorHandler: (err: any, req: any, res: any, next: any) => void;
};