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

Function newWSRequestBody

proxy/proxy_test.go:744–753  ·  view source on GitHub ↗
(data []byte)

Source from the content-addressed store, hash-verified

742}
743
744func newWSRequestBody(data []byte) *requestBody {
745 pr, pw := io.Pipe()
746 go func() {
747 _ = wsutil.WriteClientBinary(pw, data)
748 }()
749 return &requestBody{
750 pr: pr,
751 pw: pw,
752 }
753}
754
755func newTCPRequestBody(data []byte) *requestBody {
756 pr, pw := io.Pipe()

Callers 1

TestConnectionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected