pub fn upgrade_request_headers<'a>(
host: Option<&'a str>,
origin: Option<&'a str>,
version: Option<&'a str>,
nonce: &[u8; 16],
buf: &'a mut [u8; 28],
) -> [(&'a str, &'a str); 7]Expand description
Return ready-to-use WS upgrade request headers
Parameters:
host: TheHostheader, if presentorigin: TheOriginheader, if presentversion: TheSec-WebSocket-Versionheader, if present; otherwise version “13” is assumednonce: The nonce to use for theSec-WebSocket-Keyheaderbuf: A buffer to use for base64 encoding the nonce