pub async fn async_req_handshake<S: AsyncRead + AsyncWrite + Unpin>(
    stream: &mut WsAsyncStream<S>,
    mode: &Mode,
    uri: &Uri,
    protocols: String,
    extensions: String,
    version: u8,
    extra_headers: HashMap<String, String>
) -> Result<(String, Response<()>, BytesMut), WsError>
Expand description

perform http upgrade

NOTE: low level api