pub fn create_handshake_request(
request: RequestBuilder,
http_state: Arc<HttpState>,
) -> Result<Request, Error>Expand description
Create a Request object for the initial HTTP request.
This request contains Origin, Sec-WebSocket-Protocol, Authorization,
and Cookie headers as appropriate.
Returns an error if any header values are invalid or tungstenite cannot create
the desired request.