http3server

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package http3server provides an HTTP/3 (QUIC) server that reuses the httphandler logic. Same ASA-style endpoints, different transport.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is an HTTP/3 server backed by a Device.

func New

func New(addr string, dev *device.Device) *Server

New creates an HTTP/3 server on addr backed by dev.

func (*Server) Addr

func (s *Server) Addr() string

Addr returns the listener's address, or "" if not yet listening.

func (*Server) Close

func (s *Server) Close() error

Close stops the server.

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

ListenAndServe starts the HTTP/3 listener with a self-signed cert.

func (*Server) SetPacketConn

func (s *Server) SetPacketConn(conn net.PacketConn)

SetPacketConn sets a custom net.PacketConn for the server.

Jump to

Keyboard shortcuts

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