Skip to content

covenix / HeaderValue

Type Alias: HeaderValue

HeaderValue = string | number | ReadonlyArray<string | number>

Defined in: src/response.ts:9

A response header value: a string or number, or an array of them for a header that may legitimately appear more than once (e.g. Set-Cookie, Link, Vary). Numbers are stringified; an array emits the header once per element. For cookies, prefer the cookies option, which formats them for you.