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

Function isTextContentType

packages/plugins/openapi/src/sdk/invoke.ts:208–209  ·  view source on GitHub ↗
(ct: string | null | undefined)

Source from the content-addressed store, hash-verified

206};
207
208const isTextContentType = (ct: string | null | undefined): boolean =>
209 normalizeContentType(ct).startsWith("text/");
210
211const isOctetStream = (ct: string | null | undefined): boolean =>
212 normalizeContentType(ct) === "application/octet-stream";

Callers 1

applyRequestBodyFunction · 0.85

Calls 1

normalizeContentTypeFunction · 0.85

Tested by

no test coverage detected