MCPcopy
hub / github.com/GitbookIO/gitbook / isText

Function isText

packages/react-openapi/src/contentTypeChecks.ts:25–27  ·  view source on GitHub ↗
(contentType?: string)

Source from the content-addressed store, hash-verified

23}
24
25export function isText(contentType?: string): boolean {
26 return contentType?.toLowerCase().includes('text/plain') || false;
27}
28
29export function isFormUrlEncoded(contentType?: string): boolean {
30 return contentType?.toLowerCase().includes('application/x-www-form-urlencoded') || false;

Callers 2

getCurlBodyFunction · 0.90
code-samples.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected