Skip to main content

validate_server_setup

Function validate_server_setup 

Source
pub fn validate_server_setup(msg: &ServerSetup) -> Result<(), SetupError>
Expand description

Validate a SERVER_SETUP message.

Section 9.3.1.2 on PATH: “It MUST NOT be used by the server, or when WebTransport is used”, and a PATH received from the server closes the session with INVALID_PATH. Nothing else in a SERVER_SETUP is restricted by sender.

§Errors

SetupError::WrongParameterRole if the server sent a PATH.