Versions in this module Expand all Collapse all v0 v0.0.1 Apr 10, 2026 Changes in this version + const InvalidStreamID + const MethodGet0RTT + const MethodHead0RTT + const NextProtoH3 + const Version1 + const Version2 + const VersionUnknown + var ErrNoCachedConn = errors.New("http3: no cached connection was available") + var ErrTransportClosed = errors.New("http3: transport is closed") + type ClientConn struct + func (c *ClientConn) CloseWithError(code ErrCode, msg string) error + func (c *ClientConn) Conn() *Conn + func (c *ClientConn) Context() context.Context + func (c *ClientConn) HandleBidirectionalStream(str *quic.Stream) + func (c *ClientConn) OpenRequestStream(ctx context.Context) (*RequestStream, error) + func (c *ClientConn) ReceivedSettings() <-chan struct{} + func (c *ClientConn) RoundTrip(req *http.Request) (*http.Response, error) + func (c *ClientConn) Settings() *Settings + type Conn struct + func (c *Conn) CloseWithError(code quic.ApplicationErrorCode, msg string) error + func (c *Conn) ConnectionState() quic.ConnectionState + func (c *Conn) Context() context.Context + func (c *Conn) HandshakeComplete() <-chan struct{} + func (c *Conn) LocalAddr() net.Addr + func (c *Conn) OpenStream() (*quic.Stream, error) + func (c *Conn) OpenStreamSync(ctx context.Context) (*quic.Stream, error) + func (c *Conn) OpenUniStream() (*quic.SendStream, error) + func (c *Conn) OpenUniStreamSync(ctx context.Context) (*quic.SendStream, error) + func (c *Conn) ReceivedSettings() <-chan struct{} + func (c *Conn) RemoteAddr() net.Addr + func (c *Conn) Settings() *Settings + 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 ErrCodeQPACKDecompressionFailed + 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 + func (e *Error) Is(target error) bool + type FrameType uint64 + type Hijacker interface + Connection func() *Conn + type Perspective int + const PerspectiveClient + const PerspectiveServer + func (p Perspective) Opposite() Perspective + func (p Perspective) String() string + type RawClientConn struct + func (c *RawClientConn) HandleUnidirectionalStream(str *quic.ReceiveStream) + type RequestStream struct + func (s *RequestStream) CancelRead(errorCode quic.StreamErrorCode) + func (s *RequestStream) CancelWrite(errorCode quic.StreamErrorCode) + func (s *RequestStream) Close() error + func (s *RequestStream) Context() context.Context + func (s *RequestStream) Read(b []byte) (int, error) + func (s *RequestStream) ReadResponse() (*http.Response, error) + func (s *RequestStream) ReceiveDatagram(ctx context.Context) ([]byte, error) + func (s *RequestStream) SendDatagram(b []byte) error + func (s *RequestStream) SendRequestHeader(req *http.Request) error + func (s *RequestStream) SetDeadline(t time.Time) error + func (s *RequestStream) SetReadDeadline(t time.Time) error + func (s *RequestStream) SetWriteDeadline(t time.Time) error + func (s *RequestStream) StreamID() quic.StreamID + func (s *RequestStream) Write(b []byte) (int, error) + type RoundTripOpt struct + OnlyCachedConn bool + type Settings struct + EnableDatagrams bool + EnableExtendedConnect bool + Other map[uint64]uint64 + type Stream struct + func (s *Stream) Read(b []byte) (int, error) + func (s *Stream) ReceiveDatagram(ctx context.Context) ([]byte, error) + func (s *Stream) SendDatagram(b []byte) error + func (s *Stream) StreamID() quic.StreamID + func (s *Stream) Write(b []byte) (int, error) + type StreamNum int64 + const InvalidStreamNum + const MaxStreamCount + func (s StreamNum) StreamID(stype StreamType, pers Perspective) quic.StreamID + type StreamType uint8 + const StreamTypeBidi + const StreamTypeUni + type Transport struct + AdditionalSettings map[uint64]uint64 + Dial func(ctx context.Context, addr string, tlsCfg *tls.Config, cfg *quic.Config) (*quic.Conn, error) + DisableCompression bool + EnableDatagrams bool + Logger *slog.Logger + MaxResponseHeaderBytes int + QUICConfig *quic.Config + TLSClientConfig *tls.Config + func (t *Transport) AddConn(ctx context.Context, addr string) error + func (t *Transport) Close() error + func (t *Transport) CloseIdleConnections() + func (t *Transport) NewClientConn(conn *quic.Conn) *ClientConn + func (t *Transport) NewRawClientConn(conn *quic.Conn) *RawClientConn + func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) + func (t *Transport) RoundTripOnlyCachedConn(req *http.Request) (*http.Response, error) + func (t *Transport) RoundTripOpt(req *http.Request, opt RoundTripOpt) (*http.Response, error)