UNPKG

@thi.ng/server

Version:

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

8 lines 278 B
import type { Interceptor } from "../api.js"; /** * Pre-interceptor to inject given headers into the response. * * @param headers */ export declare const injectHeaders: (headers: Record<string, string | string[]>) => Interceptor; //# sourceMappingURL=inject-headers.d.ts.map