Type Alias: HeaderLike
HeaderLike =
Headers|HeaderRecord| {headers:Headers|HeaderRecord; }
Anything that contains HTTP headers. Accepts:
- A WHATWG
Headersinstance (fetch / undici / Honoc.req.raw.headers). - A header record (
Record<string, string | string[] | undefined>), Node / Express style. - Any object with a
headersfield of one of the above. This covers Expressreq, NodeIncomingMessage, WHATWGRequest/Response, Honoc.req.raw, and similar shapes.