Session API¶
session
¶
High-level abstraction for a WebTransport session.
SessionDiagnostics
dataclass
¶
Encapsulate session diagnostic data.
WebTransportSession
¶
Manage the high-level WebTransport session.
wt_available_protocols
property
¶
Return the wt_available_protocols requested by the client.
wt_protocol
property
writable
¶
Return the negotiated wt_protocol for this session.
accept_bidirectional_stream
async
¶
Accept the next incoming bidirectional stream.
accept_unidirectional_stream
async
¶
Accept the next incoming unidirectional stream.
close
async
¶
Terminate the WebTransport session.
create_bidirectional_stream
async
¶
Instantiate a new bidirectional WebTransport stream.
create_unidirectional_stream
async
¶
Instantiate a new unidirectional WebTransport stream.
diagnostics
async
¶
Retrieve diagnostic information about the session.
export_keying_material
async
¶
Export TLS keying material for this session.
grant_data_credit
async
¶
Allocate data flow control credit to the peer.
grant_streams_credit
async
¶
Allocate stream flow control credit to the peer.
incoming_bidirectional_streams
async
¶
Yield incoming bidirectional streams until the session is closed.
incoming_unidirectional_streams
async
¶
Yield incoming unidirectional streams until the session is closed.
reject
async
¶
Reject the incoming WebTransport session request.