h2c

package
v0.0.0-...-5d47f50 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type H2C

type H2C struct {
	http2.Transport
}

Can't do h2c using the std client - need custom code.

func (*H2C) Provision

func (h *H2C) Provision(ctx context.Context) error

type H2CD

type H2CD struct {
	// Extends server with the address.
	// Probably should add each setting and copy, but simpler.
	http2.Server

	Address string `json:"address"`
	Mux     *http.ServeMux
}

HTTP2 based transport, using x/net/http2 library directly (instead of standard library). curl localhost:9080/debug/vars --http2-prior-knowledge

func (*H2CD) Provision

func (h *H2CD) Provision(ctx context.Context) error

func (*H2CD) Start

func (h *H2CD) Start() error

Jump to

Keyboard shortcuts

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