http3

package module
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package http3 provides optional HTTP/3 transport profiles for requests.

The package keeps QUIC dependencies outside the core requests module. Use requests.WithProfile(http3.Profile()) when a client should send requests over HTTP/3.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Profile

func Profile(opts ...Option) requests.Profile

Profile returns an HTTP/3 client profile.

func Transport

func Transport(opts ...Option) *qhttp3.Transport

Transport returns a configured HTTP/3 transport.

Types

type Option

type Option func(*settings)

Option configures an HTTP/3 transport profile.

func WithAdditionalSettings

func WithAdditionalSettings(values map[uint64]uint64) Option

WithAdditionalSettings sets additional HTTP/3 settings.

func WithDatagrams

func WithDatagrams() Option

WithDatagrams enables HTTP/3 datagram support.

func WithLogger

func WithLogger(logger *slog.Logger) Option

WithLogger sets the HTTP/3 transport logger.

func WithMaxResponseHeaderBytes

func WithMaxResponseHeaderBytes(n int) Option

WithMaxResponseHeaderBytes sets the response header byte limit.

func WithQUICConfig

func WithQUICConfig(quicConfig *quic.Config) Option

WithQUICConfig sets the QUIC configuration for the HTTP/3 transport.

func WithTLSConfig

func WithTLSConfig(tlsConfig *tls.Config) Option

WithTLSConfig sets the TLS configuration for the HTTP/3 transport.

func WithoutCompression

func WithoutCompression() Option

WithoutCompression disables automatic gzip request and response handling in the HTTP/3 transport.

Jump to

Keyboard shortcuts

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