Middleware

类型

1import type { IncomingMessage, ServerResponse } from 'node:http';
2import type { Gez } from './gez';
3export type Middleware = (req: IncomingMessage, res: ServerResponse, next: Function) => void;
4export declare function createMiddleware(gez: Gez): Middleware;
5/**
6 * 将多个中间件,合并成一个中间件执行
7 * @param middlewares 中间件列表
8 * @returns
9 */
10export declare function mergeMiddlewares(middlewares: Middleware[]): Middleware;
ON THIS PAGE