UNPKG

tezx

Version:

TezX is a high-performance, lightweight JavaScript framework designed for speed, scalability, and flexibility. It enables efficient routing, middleware management, and static file serving with minimal configuration. Fully compatible with Node.js, Deno, an

17 lines (16 loc) 476 B
import { Middleware } from "../types/index.js"; /** * PoweredBy Middleware * Adds an "X-Powered-By" header to responses. * * @param {string} [serverName] - Optional custom server name; defaults to "TezX". * @returns {Middleware} - A middleware function for setting the "X-Powered-By" header. * * @example * ```ts * import { poweredBy } from 'tezx'; * * app.use(poweredBy("MyServer")); * ``` */ export declare const poweredBy: (serverName?: string) => Middleware;