http2

package
v1.34.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer added in v1.34.0

func NewServer(addr string, cfg *tls.Config, username, password string) (*http.Server, error)

NewServer creates and starts HTTP/2 Server for forward proxying. The caller should call Close when finished, to shut it down.

func NewStreamDialer

func NewStreamDialer(addr string, cfg *tls.Config, username, password string) *streamDialer

NewStreamDialer creates a transport.StreamDialer which issues CONNECT to HTTP/2 server. It compatible with Caddy's forward proxy.

Types

This section is empty.

Jump to

Keyboard shortcuts

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