MCPcopy
hub / github.com/tinyhttp/tinyhttp / getResponseHeader

Function getResponseHeader

packages/res/src/headers.ts:56–60  ·  view source on GitHub ↗
(res: Response)

Source from the content-addressed store, hash-verified

54}
55
56export const getResponseHeader = <Response extends Res = Res>(res: Response) => (
57 field: string
58): string | number | string[] => {
59 return res.getHeader(field)
60}
61
62export const setLinksHeader = <Response extends Res = Res>(res: Response) => (links: {
63 [key: string]: string

Callers 3

extendMiddlewareFunction · 0.90
appendFunction · 0.90
res.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected