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 ¶
- func Profile(opts ...Option) requests.Profile
- func Transport(opts ...Option) *qhttp3.Transport
- type Option
- func WithAdditionalSettings(values map[uint64]uint64) Option
- func WithDatagrams() Option
- func WithLogger(logger *slog.Logger) Option
- func WithMaxResponseHeaderBytes(n int) Option
- func WithQUICConfig(quicConfig *quic.Config) Option
- func WithTLSConfig(tlsConfig *tls.Config) Option
- func WithoutCompression() Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*settings)
Option configures an HTTP/3 transport profile.
func WithAdditionalSettings ¶
WithAdditionalSettings sets additional HTTP/3 settings.
func WithLogger ¶
WithLogger sets the HTTP/3 transport logger.
func WithMaxResponseHeaderBytes ¶
WithMaxResponseHeaderBytes sets the response header byte limit.
func WithQUICConfig ¶
WithQUICConfig sets the QUIC configuration for the HTTP/3 transport.
func WithTLSConfig ¶
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.