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

Function isGenericMimeType

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

Source from the content-addressed store, hash-verified

412};
413
414const isGenericMimeType = (mimeType: string): boolean =>
415 normalizeContentType(mimeType) === "application/octet-stream";
416
417const startsWithBytes = (bytes: Uint8Array, prefix: readonly number[]): boolean =>
418 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