MCPcopy
hub / github.com/unkeyed/unkey / IsStreamingContentType

Function IsStreamingContentType

pkg/zen/session.go:552–555  ·  view source on GitHub ↗

IsStreamingContentType returns true for content types that use streaming and must not have their body buffered (gRPC, Connect streaming).

(ct string)

Source from the content-addressed store, hash-verified

550// IsStreamingContentType returns true for content types that use streaming
551// and must not have their body buffered (gRPC, Connect streaming).
552func IsStreamingContentType(ct string) bool {
553 return strings.HasPrefix(ct, "application/grpc") ||
554 strings.HasPrefix(ct, "application/connect+")
555}
556
557// reset is called automatically before the session is returned to the pool.
558// It resets all fields to their null value to prevent leaking data between

Callers 1

InitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected