Versions in this module Expand all Collapse all v0 v0.1.0 Jun 17, 2024 Changes in this version + const WebTransportBufferedStreamRejectedErrorCode + type Dialer struct + DialAddr func(ctx context.Context, addr string, tlsCfg *tls.Config, cfg *quic.Config) (quic.EarlyConnection, error) + QUICConfig *quic.Config + StreamReorderingTimeout time.Duration + TLSClientConfig *tls.Config + func (d *Dialer) Close() error + func (d *Dialer) Dial(ctx context.Context, urlStr string, reqHdr http.Header) (*http.Response, *Session, error) + type ReceiveStream interface + CancelRead func(StreamErrorCode) + SetReadDeadline func(time.Time) error + StreamID func() quic.StreamID + type SendStream interface + CancelWrite func(StreamErrorCode) + SetWriteDeadline func(time.Time) error + StreamID func() quic.StreamID + type Server struct + CheckOrigin func(r *http.Request) bool + H3 http3.Server + ReorderingTimeout time.Duration + func (s *Server) Close() 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 http3.QUICEarlyListener) error + func (s *Server) ServeQUICConn(conn quic.Connection) error + func (s *Server) Upgrade(w http.ResponseWriter, r *http.Request) (*Session, error) + type Session struct + func (s *Session) AcceptStream(ctx context.Context) (Stream, error) + func (s *Session) AcceptUniStream(ctx context.Context) (ReceiveStream, error) + func (s *Session) CloseWithError(code SessionErrorCode, msg string) error + func (s *Session) ConnectionState() quic.ConnectionState + func (s *Session) Context() context.Context + func (s *Session) LocalAddr() net.Addr + func (s *Session) OpenStream() (Stream, error) + func (s *Session) OpenStreamSync(ctx context.Context) (Stream, error) + func (s *Session) OpenUniStream() (SendStream, error) + func (s *Session) OpenUniStreamSync(ctx context.Context) (str SendStream, err error) + func (s *Session) ReceiveDatagram(ctx context.Context) ([]byte, error) + func (s *Session) RemoteAddr() net.Addr + func (s *Session) SendDatagram(b []byte) error + type SessionError struct + ErrorCode SessionErrorCode + Message string + Remote bool + func (e *SessionError) Error() string + type SessionErrorCode uint32 + type Stream interface + SetDeadline func(time.Time) error + type StreamError struct + ErrorCode StreamErrorCode + Remote bool + func (e *StreamError) Error() string + func (e *StreamError) Is(target error) bool + type StreamErrorCode uint32