MCPcopy Create free account
hub / github.com/middleapi/orpc / flattenHeader

Function flattenHeader

packages/standard-server/src/utils.ts:51–61  ·  view source on GitHub ↗
(header: string | readonly string[] | undefined)

Source from the content-addressed store, hash-verified

49}
50
51export function flattenHeader(header: string | readonly string[] | undefined): string | undefined {
52 if (typeof header === 'string' || header === undefined) {
53 return header
54 }
55
56 if (header.length === 0) {
57 return undefined
58 }
59
60 return header.join(', ')
61}
62
63export function replicateStandardLazyResponse(
64 response: StandardLazyResponse,

Callers 9

initMethod · 0.90
toNodeHttpBodyFunction · 0.90
utils.test.tsFile · 0.90
toLambdaHeadersFunction · 0.90
handleMethod · 0.90
initMethod · 0.90
initMethod · 0.90
deserializeBodyFunction · 0.90
isEventIteratorHeadersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected