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 8.2.2.1 on PATH: “It MUST NOT be used by the server, or when WebTransport is used. If the peer receives a PATH parameter from the server, or when WebTransport is used, it MUST close the connection.” Nothing else in a SERVER_SETUP is restricted by sender.

§Errors

SetupError::WrongParameterRole if the server sent a PATH.