httpserver

package
v0.0.0-...-b2f0ca2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: Apache-2.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureH2C

func ConfigureH2C(server *http.Server)

ConfigureH2C has server accept HTTP/2 in cleartext with prior knowledge, beside HTTP/1 and HTTP/2 over TLS. net/http serves those connections itself, so Shutdown sends them a GOAWAY and waits for their streams like any other connection. An HTTP/1.1 request asking to upgrade to h2c is answered over HTTP/1.1.

Types

This section is empty.

Jump to

Keyboard shortcuts

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