pub fn is_upgrade_accepted<'a, H>(
code: u16,
response_headers: H,
nonce: &[u8; 16],
buf: &'a mut [u8; 33],
) -> boolExpand description
Check if the response is a Websocket upgrade response and if the upgrade was accepted
Parameters:
code: The status response coderesponse_headers: The response headersnonce: The nonce used for theSec-WebSocket-Keyheader in the WS upgrade requestbuf: A buffer to use when performing the check