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

Method Write

connection/connection.go:195–201  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

193}
194
195func (h *HTTPResponseReadWriteAcker) Write(p []byte) (int, error) {
196 n, err := h.w.Write(p)
197 if n > 0 {
198 h.f.Flush()
199 }
200 return n, err
201}
202
203// AckConnection acks an HTTP connection by sending a switch protocols status code that enables the caller to
204// upgrade to streams.

Callers

nothing calls this directly

Calls 2

WriteMethod · 0.65
FlushMethod · 0.45

Tested by

no test coverage detected