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

Method Write

connection/quic_connection.go:303–309  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

301}
302
303func (hrw *httpResponseAdapter) Write(p []byte) (int, error) {
304 // Make sure to send WriteHeader response if not called yet
305 if !hrw.connectResponseSent {
306 _ = hrw.WriteRespHeaders(http.StatusOK, hrw.headers)
307 }
308 return hrw.RequestServerStream.Write(p)
309}
310
311func (hrw *httpResponseAdapter) Header() http.Header {
312 return hrw.headers

Callers

nothing calls this directly

Calls 2

WriteRespHeadersMethod · 0.95
WriteMethod · 0.65

Tested by

no test coverage detected