Versions in this module Expand all Collapse all v0 v0.25.0 Aug 22, 2022 Changes in this version + const MethodGet0RTT + var ErrNoAltSvcPort = errors.New(...) + var ErrNoCachedConn = errors.New("http3: no cached connection was available") + 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 + type FrameType uint64 + type HTTPStreamer interface + HTTPStream func() Stream + type Hijacker interface + StreamCreator func() StreamCreator + 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) 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 quic.EarlyListener) error + func (s *Server) SetQuicHeaders(hdr http.Header) error + type Stream quic.Stream + type StreamCreator interface + 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