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) Upgrade ¶
func (s *Server) Upgrade(w http.ResponseWriter, r *http.Request) (*webtransport.Session, error)
Upgrade upgrades an HTTP/3 request to a WebTransport session. Only valid when EnableWebTransport is true.
Click to show internal directories.
Click to hide internal directories.