UNPKG

@thi.ng/server

Version:

Minimal HTTP server with declarative routing, static file serving and freely extensible via pre/post interceptors

9 lines 327 B
import { type LogLevel, type LogLevelName } from "@thi.ng/logger"; import type { Interceptor } from "../api.js"; /** * Pre/post interceptor to measure & log a request's processing time. * * @param level */ export declare const measure: (level?: LogLevel | LogLevelName) => Interceptor; //# sourceMappingURL=measure.d.ts.map