h3

package
v1.28.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(timeout time.Duration, opts ClientOptions) (*http.Client, func(), error)

func NewServer

func NewServer(addr string, handler http.Handler, certFile, keyFile string) (*http3.Server, error)

func NewServerWithOptions

func NewServerWithOptions(addr string, handler http.Handler, certFile, keyFile string, opts ServerOptions) (*http3.Server, error)

func NewServerWithTLSConfig

func NewServerWithTLSConfig(addr string, handler http.Handler, tlsConfig *tls.Config) *http3.Server

func NewServerWithTLSConfigAndOptions

func NewServerWithTLSConfigAndOptions(addr string, handler http.Handler, tlsConfig *tls.Config, opts ServerOptions) *http3.Server

Types

type ClientOptions

type ClientOptions struct {
	CACertFile string
	// SAN에 없는 주소(127.0.0.1, docker DNS)로 접속할 때 SAN에 있는 이름으로 검증한다.
	ServerName string
	DialGuard  func(net.IP) error
}

type ServerOptions

type ServerOptions struct {
	MaxIncomingStreams             int64
	MaxIncomingUniStreams          int64
	InitialStreamReceiveWindow     uint64
	MaxStreamReceiveWindow         uint64
	InitialConnectionReceiveWindow uint64
	MaxConnectionReceiveWindow     uint64
}

ServerOptions는 HTTP/3 서버의 QUIC 수신 한도를 노출합니다. zero-value는 기존 quic-go 기본값을 그대로 사용합니다.

Jump to

Keyboard shortcuts

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