Skip to main content

get_upgrade_protocol

Function get_upgrade_protocol 

Source
pub fn get_upgrade_protocol<B>(req: &Request<B>) -> Option<&str>
Expand description

Get the upgrade protocol from a request

Returns the value of the Upgrade header if present