httpp3

package
v1.20.1-soundar.7 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package httpp3 contains HTTP/3 utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Address            string
	UDPReadBufferSize  uint
	EnableWebTransport bool
	Handler            http.Handler
	Parent             logger.Writer
	// contains filtered or unexported fields
}

Server is a wrapper around http3.Server that provides: - net.PacketConn creation and destruction - JIT TLS certificate generation and rotation (WebTransport-compatible: ECDSA P-256, 14-day validity)

func (*Server) Certificate

func (s *Server) Certificate() *tls.Certificate

Certificate returns the current TLS certificate.

func (*Server) Close

func (s *Server) Close()

Close closes all resources and waits for all routines to return.

func (*Server) Initialize

func (s *Server) Initialize() error

Initialize initializes a Server.

func (*Server) Upgrade

Upgrade upgrades an HTTP/3 request to a WebTransport session. Only valid when EnableWebTransport is true.

Jump to

Keyboard shortcuts

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