fn create_request(
resource_url: &ServoUrl,
origin: &str,
protocols: &[String],
http_state: &HttpState,
) -> Result<Request>
Expand description
Create a tungstenite 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.