HTTP2Connection represents a net.Conn that uses HTTP2 frames to proxy traffic from the edge to cloudflared on the origin.
| 36 | // HTTP2Connection represents a net.Conn that uses HTTP2 frames to proxy traffic from the edge to cloudflared on the |
| 37 | // origin. |
| 38 | type 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. |
| 54 | func NewHTTP2Connection( |
nothing calls this directly
no outgoing calls
no test coverage detected