UNPKG

tezx

Version:

TezX is a modern, ultra-lightweight, and high-performance JavaScript framework built specifically for Bun. It provides a minimal yet powerful API, seamless environment management, and a high-concurrency HTTP engine for building fast, scalable web applicat

14 lines (13 loc) 470 B
import { Middleware } from "../types/index.js"; /** * ETag Middleware for Bun * * Automatically generates ETag headers for responses. * Returns 304 Not Modified if client's If-None-Match matches the ETag. * * @param options.strongEtag - true for strong ETag (default), false for weak */ export declare function Etag<T extends Record<string, any> = {}, Path extends string = any>(options?: { strongEtag?: boolean; }): Middleware<T, Path>; export default Etag;