Skip to main content

preflight

Function preflight 

Source
pub fn preflight(
    method: &Method,
    url: &Url,
    protocol: &str,
) -> Result<(), UpgradeRequired>
Expand description

Refuse a write the latched window already says the server will not take, before it leaves. Reads are never refused.

§Errors

UpgradeRequired when method writes and protocol/CLIENT_BUILD is outside the window url’s server last advertised.