h2c

package
v0.0.0-...-ef13da3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(h http.Handler, s *http2.Server) http.Handler

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL