Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
NewHandler returns an http.Handler that wraps h, intercepting any h2c traffic. See h2c.NewHandler for details. Unlike the normal handler, this handler prevents h2c Upgrades, which are not safe in Go's implementation; see https://github.com/golang/go/issues/56352. This means we allow only HTTP/1.1 or HTTP/2 prior knowledge.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.