http/header_lines.ts view source
(c: Context<any, any, {}>, name: string): string[] import {get_header_lines} from '@fuzdev/fuz_app/http/header_lines.js'; Read one request header as the lines it was sent in.
On @hono/node-server the lines come from the request's raw header list
(c.env.incoming.rawHeaders), so a header sent twice is two entries. A
runtime with no per-line view — Bun, and an in-process app.request — gives
the Fetch Headers value as the single line: repeated lines arrive already
joined (; for Cookie, , otherwise), and a caller that must tell a
repeat from one line reads a grammar that refuses the join.
c
the request context
Context<any, any, {}>name
the header name, in any case
stringreturns
string[] the header's field values, outer SP and HTAB stripped, in the order sent — [] when the request carries no such header