MCPcopy Create free account
hub / github.com/Kong/httpsnippet / isMimeTypeJSON

Function isMimeTypeJSON

src/helpers/headers.ts:39–40  ·  view source on GitHub ↗
(mimeType: string)

Source from the content-addressed store, hash-verified

37 * Determines if a given mimetype is JSON, or a variant of such.
38 */
39export const isMimeTypeJSON = (mimeType: string): mimeType is MimeTypeJson =>
40 mimeTypeJson.some(type => mimeType.includes(type));

Callers 1

client.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…