[−][src]Function websocket::server::upgrade::validate
pub fn validate(
method: &Method,
version: HttpVersion,
headers: &Headers
) -> Result<(), HyperIntoWsError>
Check whether an incoming request is a valid WebSocket upgrade attempt.