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

Function isXmlContentType

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

Source from the content-addressed store, hash-verified

198 normalizeContentType(ct).startsWith("multipart/form-data");
199
200const isXmlContentType = (ct: string | null | undefined): boolean => {
201 const normalized = normalizeContentType(ct);
202 if (!normalized) return false;
203 return (
204 normalized === "application/xml" || normalized === "text/xml" || normalized.endsWith("+xml")
205 );
206};
207
208const isTextContentType = (ct: string | null | undefined): boolean =>
209 normalizeContentType(ct).startsWith("text/");

Callers 1

applyRequestBodyFunction · 0.85

Calls 1

normalizeContentTypeFunction · 0.85

Tested by

no test coverage detected