MCPcopy Index your code
hub / github.com/massCodeIO/massCode / isRequestFile

Function isRequestFile

src/main/http/import/opencollection.ts:119–122  ·  view source on GitHub ↗
(raw: unknown)

Source from the content-addressed store, hash-verified

117}
118
119function isRequestFile(raw: unknown): raw is UnknownRecord {
120 const info = getInfo(raw)
121 return isRecord(raw) && info.type === 'http' && isRecord(raw.http)
122}
123
124function parseHeaders(rawHeaders: unknown): HttpHeaderEntry[] {
125 return asArray(rawHeaders)

Callers 2

parseBundledItemsFunction · 0.85
parseOpenCollectionFilesFunction · 0.85

Calls 2

getInfoFunction · 0.70
isRecordFunction · 0.70

Tested by

no test coverage detected