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

Struct HTTP2Connection

connection/http2.go:38–51  ·  view source on GitHub ↗

HTTP2Connection represents a net.Conn that uses HTTP2 frames to proxy traffic from the edge to cloudflared on the origin.

Source from the content-addressed store, hash-verified

36// HTTP2Connection represents a net.Conn that uses HTTP2 frames to proxy traffic from the edge to cloudflared on the
37// origin.
38type HTTP2Connection struct {
39 conn net.Conn
40 server *http2.Server
41 orchestrator Orchestrator
42 connOptions *client.ConnectionOptionsSnapshot
43 observer *Observer
44 connIndex uint8
45
46 log *zerolog.Logger
47 activeRequestsWG sync.WaitGroup
48 controlStreamHandler ControlStreamHandler
49 stoppedGracefully bool
50 controlStreamErr error // result of running control stream handler
51}
52
53// NewHTTP2Connection returns a new instance of HTTP2Connection.
54func NewHTTP2Connection(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected