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

Function isXmlContentType

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

Source from the content-addressed store, hash-verified

205 normalizeContentType(ct).startsWith("multipart/form-data");
206
207const isXmlContentType = (ct: string | null | undefined): boolean => {
208 const normalized = normalizeContentType(ct);
209 if (!normalized) return false;
210 return (
211 normalized === "application/xml" || normalized === "text/xml" || normalized.endsWith("+xml")
212 );
213};
214
215const isTextContentType = (ct: string | null | undefined): boolean =>
216 normalizeContentType(ct).startsWith("text/");

Callers 1

applyRequestBodyFunction · 0.85

Calls 1

normalizeContentTypeFunction · 0.85

Tested by

no test coverage detected