h2

package
v0.1.52 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func H2CHandler added in v0.1.52

func H2CHandler(h http.Handler) http.Handler

H2CHandler wraps the given http.Handler (or nil) such that it can now serve unencrypted h2 traffic. This is useful for hosting providers.

func ListenAndServeSelfSignedTLS added in v0.1.52

func ListenAndServeSelfSignedTLS(addr string, handler http.Handler) error

ListenAndServeSelfSignedTLS is a helper which serves https with a known bad certificate. As of July 2025, this is useful for Cloudflare, which allows HTTP/2 over "bad" SSL (rather than h2c).

Types

This section is empty.

Jump to

Keyboard shortcuts

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