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

Function isEventIteratorHeaders

packages/standard-server/src/utils.ts:91–93  ·  view source on GitHub ↗
(headers: StandardHeaders)

Source from the content-addressed store, hash-verified

89}
90
91export function isEventIteratorHeaders(headers: StandardHeaders): boolean {
92 return Boolean(flattenHeader(headers['content-type'])?.startsWith('text/event-stream') && flattenHeader(headers['content-disposition']) === undefined)
93}

Callers 3

utils.test.tsFile · 0.90
requestMethod · 0.90
messageMethod · 0.90

Calls 1

flattenHeaderFunction · 0.85

Tested by

no test coverage detected