Skip to main content

Module setup

Module setup 

Source
Expand description

CLIENT_SETUP / SERVER_SETUP validation and version negotiation.

Re-exportsยง

use moqtap_codec::draft07::message::ClientSetup; ๐Ÿ”’
use moqtap_codec::draft07::message::ServerSetup; ๐Ÿ”’
use moqtap_codec::draft07::types::Role; ๐Ÿ”’
use moqtap_codec::kvp::KeyValuePair; ๐Ÿ”’
use moqtap_codec::kvp::KvpValue; ๐Ÿ”’
use moqtap_codec::varint::VarInt; ๐Ÿ”’

Enumsยง

SetupError
Errors from setup message validation or version negotiation.

Constantsยง

DRAFT_VERSION ๐Ÿ”’
The version number this module speaks, and the only one it can.
PATH ๐Ÿ”’
The PATH setup parameter. It is the one setup parameter whose sender this draft restricts, and the restriction runs one way: PATH is the clientโ€™s.
ROLE ๐Ÿ”’
The ROLE setup parameter, which this draft requires of both endpoints and which draft-08 removes.

Functionsยง

check_role ๐Ÿ”’
Hold a setup message to the ROLE rule.
has_path ๐Ÿ”’
negotiate_version
Negotiate a version from the clientโ€™s offered list and the serverโ€™s selected version.
setup_varint
Read a varint out of a setup parameter value, whichever shape it arrived in.
validate_client_path_transport
Refuse a PATH parameter on a session that is not native QUIC.
validate_client_setup
Validate a CLIENT_SETUP message.
validate_server_setup
Validate a SERVER_SETUP message.