http3

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControlStream adapter.StreamType = 0x00
	PushStream    adapter.StreamType = 0x01
	QPackEncoder  adapter.StreamType = 0x02
	QPackDecoder  adapter.StreamType = 0x03
)
View Source
const ALPNH3Protocol = "h3"

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Addr    string
	Handler http.Handler
	// contains filtered or unexported fields
}

func NewServer

func NewServer(addr string, decoderFactory qpack.Factory, handler http.Handler) *Server

func (*Server) OnCanceledConn

func (s *Server) OnCanceledConn(conn adapter.QuicConn)

func (*Server) OnNewBiStream

func (s *Server) OnNewBiStream(conn adapter.QuicConn, stream adapter.QuicBiStream)

func (*Server) OnNewConnection

func (s *Server) OnNewConnection(conn adapter.QuicConn)

func (*Server) OnNewUniStream

func (s *Server) OnNewUniStream(conn adapter.QuicConn, id adapter.StreamId)

func (*Server) OnReadBiStream

func (s *Server) OnReadBiStream(conn adapter.QuicConn, stream adapter.QuicBiStream, reader io.Reader)

func (*Server) OnReadUniStream

func (s *Server) OnReadUniStream(conn adapter.QuicConn, id adapter.StreamId, reader io.Reader)

type Settings

type Settings struct {
	Datagrams           bool
	ExtendedConnect     bool
	MaxFieldSectionSize uint64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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