http2

package
v0.0.0-...-b1b21d8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: LGPL-3.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Upg

type Upg struct {
	// contains filtered or unexported fields
}

func NewUpg

func NewUpg(t1 *http.Transport, options ...UpgOption) *Upg

func (*Upg) CloseIdleConnections

func (obj *Upg) CloseIdleConnections()

func (*Upg) ServerConn

func (obj *Upg) ServerConn(ctx context.Context, c net.Conn, h http.Handler)

func (*Upg) UpgradeFn

func (obj *Upg) UpgradeFn(authority string, c net.Conn) http.RoundTripper

type UpgOption

type UpgOption struct {
	H2Ja3Spec             ja3.H2Ja3Spec
	DisableCompression    bool
	DialTLSContext        func(ctx context.Context, network string, addr string, cfg *tls.Config) (net.Conn, error)
	IdleConnTimeout       time.Duration
	TLSHandshakeTimeout   time.Duration
	ResponseHeaderTimeout time.Duration
	Server                bool //是否为服务端
}

Jump to

Keyboard shortcuts

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