MCPcopy
hub / github.com/cloudflare/cloudflared / shouldFlush

Method shouldFlush

connection/connection.go:124–132  ·  view source on GitHub ↗

ShouldFlush returns whether this kind of connection should actively flush data

()

Source from the content-addressed store, hash-verified

122
123// ShouldFlush returns whether this kind of connection should actively flush data
124func (t Type) shouldFlush() bool {
125 // nolint: exhaustive
126 switch t {
127 case TypeWebsocket, TypeTCP, TypeControlStream:
128 return true
129 default:
130 return false
131 }
132}
133
134func (t Type) String() string {
135 // nolint: exhaustive

Callers 1

NewHTTP2RespWriterFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected