MCPcopy Create free account
hub / github.com/coder/coder / isNDJSONContentType

Function isNDJSONContentType

coderd/x/chatd/chatdebug/transport.go:398–400  ·  view source on GitHub ↗
(contentType string)

Source from the content-addressed store, hash-verified

396}
397
398func isNDJSONContentType(contentType string) bool {
399 return parseMediaType(contentType) == "application/x-ndjson"
400}
401
402// isSSEContentType reports whether contentType is a
403// server-sent-events stream.

Callers 1

buildAttemptLockedMethod · 0.85

Calls 1

parseMediaTypeFunction · 0.85

Tested by

no test coverage detected