QUIC API¶
The QUIC API performs no I/O on its own, leaving this to the API user. This allows you to integrate QUIC in any Python application, regardless of the concurrency model you are using.
Connection¶
Configuration¶
Events¶
- class qh3.quic.events.QuicEvent¶
Base class for QUIC events.
- class qh3.quic.events.ConnectionTerminated(error_code, frame_type, reason_phrase)¶
The ConnectionTerminated event is fired when the QUIC connection is terminated.
- class qh3.quic.events.HandshakeCompleted(alpn_protocol, early_data_accepted, session_resumed)¶
The HandshakeCompleted event is fired when the TLS handshake completes.
- class qh3.quic.events.PingAcknowledged(uid)¶
The PingAcknowledged event is fired when a PING frame is acknowledged.
- class qh3.quic.events.StopSendingReceived(error_code, stream_id)¶
The StopSendingReceived event is fired when the remote peer requests stopping data transmission on a stream.
- class qh3.quic.events.StreamDataReceived(data, end_stream, stream_id)¶
The StreamDataReceived event is fired whenever data is received on a stream.