MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isGenericMimeType

Function isGenericMimeType

packages/plugins/openapi/src/sdk/invoke.ts:419–420  ·  view source on GitHub ↗
(mimeType: string)

Source from the content-addressed store, hash-verified

417};
418
419const isGenericMimeType = (mimeType: string): boolean =>
420 normalizeContentType(mimeType) === "application/octet-stream";
421
422const startsWithBytes = (bytes: Uint8Array, prefix: readonly number[]): boolean =>
423 prefix.every((byte, index) => bytes[index] === byte);

Callers 2

fileFromByteFieldFunction · 0.85
fileFromBinaryBytesFunction · 0.85

Calls 1

normalizeContentTypeFunction · 0.85

Tested by

no test coverage detected