MCPcopy Index your code
hub / github.com/cloudflare/cloudflared / newRespReadWriteFlusher

Function newRespReadWriteFlusher

orchestration/orchestrator_test.go:833–841  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

831}
832
833func newRespReadWriteFlusher() *respReadWriteFlusher {
834 pr, pw := io.Pipe()
835 return &respReadWriteFlusher{
836 Reader: pr,
837 w: pw,
838 headers: make(http.Header),
839 hasStatus: make(chan struct{}),
840 }
841}
842
843func (rrw *respReadWriteFlusher) Write(buf []byte) (int, error) {
844 rrw.WriteHeader(http.StatusOK)

Callers 2

TestPersistentConnectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected