Versions in this module Expand all Collapse all v0 v0.0.1 Jan 3, 2024 Changes in this version + const MethodGet0RTT + const NextProtoH3 + var ErrNoAltSvcPort = errors.New(...) + var ErrNoCachedConn = errors.New("http3: no cached connection was available") + var RemoteAddrContextKey = &contextKey + var ServerContextKey = &contextKey + func ConfigureTLSConfig(tlsConf *tls.Config) *tls.Config + func ListenAndServe(addr, certFile, keyFile string, handler http.Handler) error + func ListenAndServeQUIC(addr, certFile, keyFile string, handler http.Handler) error + func WriteCapsule(w quicvarint.Writer, ct CapsuleType, value []byte) error + type CapsuleType uint64 + func ParseCapsule(r quicvarint.Reader) (CapsuleType, io.Reader, error) + type ErrCode quic.ApplicationErrorCode + const ErrCodeClosedCriticalStream + const ErrCodeConnectError + const ErrCodeDatagramError + const ErrCodeExcessiveLoad + const ErrCodeFrameError + const ErrCodeFrameUnexpected + const ErrCodeGeneralProtocolError + const ErrCodeIDError + const ErrCodeInternalError + const ErrCodeMessageError + const ErrCodeMissingSettings + const ErrCodeNoError + const ErrCodeRequestCanceled + const ErrCodeRequestIncomplete + const ErrCodeRequestRejected + const ErrCodeSettingsError + const ErrCodeStreamCreationError + const ErrCodeVersionFallback + func (e ErrCode) String() string + type Error struct + ErrorCode ErrCode + ErrorMessage string + Remote bool + func (e *Error) Error() string + type FrameType uint64 + type HTTPStreamer interface + HTTPStream func() Stream + type Hijacker interface + StreamCreator func() StreamCreator + type QUICEarlyListener interface + Accept func(context.Context) (quic.EarlyConnection, error) + Addr func() net.Addr + type RoundTripOpt struct + DontCloseRequestStream bool + OnlyCachedConn bool + type RoundTripper struct + AdditionalSettings map[uint64]uint64 + Dial func(ctx context.Context, addr string, tlsCfg *tls.Config, cfg *quic.Config) (quic.EarlyConnection, error) + DisableCompression bool + EnableDatagrams bool + MaxResponseHeaderBytes int64 + QuicConfig *quic.Config + StreamHijacker func(FrameType, quic.Connection, quic.Stream, error) (hijacked bool, err error) + TLSClientConfig *tls.Config + UniStreamHijacker func(StreamType, quic.Connection, quic.ReceiveStream, error) (hijacked bool) + func (r *RoundTripper) Close() error + func (r *RoundTripper) CloseIdleConnections() + func (r *RoundTripper) RoundTrip(req *http.Request) (*http.Response, error) + func (r *RoundTripper) RoundTripOpt(req *http.Request, opt RoundTripOpt) (*http.Response, error) + type Server struct + AdditionalSettings map[uint64]uint64 + Addr string + EnableDatagrams bool + Handler http.Handler + MaxHeaderBytes int + Port int + QuicConfig *quic.Config + StreamHijacker func(FrameType, quic.Connection, quic.Stream, error) (hijacked bool, err error) + TLSConfig *tls.Config + UniStreamHijacker func(StreamType, quic.Connection, quic.ReceiveStream, error) (hijacked bool) + func (s *Server) Close() error + func (s *Server) CloseGracefully(timeout time.Duration) error + func (s *Server) ListenAndServe() error + func (s *Server) ListenAndServeTLS(certFile, keyFile string) error + func (s *Server) Serve(conn net.PacketConn) error + func (s *Server) ServeListener(ln QUICEarlyListener) error + func (s *Server) ServeQUICConn(conn quic.Connection) error + func (s *Server) SetQuicHeaders(hdr http.Header) error + type Stream quic.Stream + type StreamCreator interface + ConnectionState func() quic.ConnectionState + Context func() context.Context + LocalAddr func() net.Addr + OpenStream func() (quic.Stream, error) + OpenStreamSync func(context.Context) (quic.Stream, error) + OpenUniStream func() (quic.SendStream, error) + OpenUniStreamSync func(context.Context) (quic.SendStream, error) + RemoteAddr func() net.Addr + type StreamType uint64