Versions in this module Expand all Collapse all v1 v1.0.1 Dec 12, 2024 Changes in this version + var ErrNoCachedConn = errors.New("h2quic: no cached connection was available") + func ListenAndServe(addr, certFile, keyFile string, handler http.Handler) error + func ListenAndServeQUIC(addr, certFile, keyFile string, handler http.Handler) error + type RoundTripOpt struct + OnlyCachedConn bool + type RoundTripper struct + Dial func(network, addr string, tlsCfg *tls.Config, cfg *quic.Config) (quic.Session, error) + DisableCompression bool + QuicConfig *quic.Config + TLSClientConfig *tls.Config + 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 + CloseAfterFirstRequest bool + QuicConfig *quic.Config + TLSConfig *tls.Config + 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) SetQuicHeaders(hdr http.Header) error