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

Function isTextContentType

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

Source from the content-addressed store, hash-verified

213};
214
215const isTextContentType = (ct: string | null | undefined): boolean =>
216 normalizeContentType(ct).startsWith("text/");
217
218const isOctetStream = (ct: string | null | undefined): boolean =>
219 normalizeContentType(ct) === "application/octet-stream";

Callers 1

applyRequestBodyFunction · 0.85

Calls 1

normalizeContentTypeFunction · 0.85

Tested by

no test coverage detected