MCPcopy
hub / github.com/keploy/keploy / isJSONContentType

Function isJSONContentType

pkg/util.go:1855–1858  ·  view source on GitHub ↗
(contentType string)

Source from the content-addressed store, hash-verified

1853}
1854
1855func isJSONContentType(contentType string) bool {
1856 contentType = strings.ToLower(strings.TrimSpace(contentType))
1857 return contentType == "application/json" || strings.HasSuffix(contentType, "+json") || contentType == "application/x-ndjson" || contentType == "application/ndjson"
1858}
1859
1860func canonicalizeNDJSONLine(line string) string {
1861 line = strings.TrimSpace(line)

Callers 2

readMultipartPartFunction · 0.85
compareMultipartPartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected