// Include a "SessionId: <session-id>" header in our handshake request.
Include a "SessionId: " header in our handshake request.
Include a " SessionId : " header in our handshake request .
fn build_request(&mut self, url: &Url) -> ws::Result<Request> {
                    let mut req = Request::from_url(url)?;
                    if let Some(ref session_id) = self.session_id {
                        req.headers_mut()
                            .push((SESSION_ID_HEADER.into(), session_id.clone().into()));
                    }
                    Ok(req)
                }
fn build_request ( & mut self , url : & Url ) -> ws :: Result < Request > { let mut req = Request :: from_url ( url ) ? ; if let Some ( ref session_id ) = self . session_id { req . headers_mut ( ) . push ( ( SESSION_ID_HEADER . into ( ) , session_id . clone ( ) . into ( ) ) ) ; } Ok ( req ) }
Include a "SessionId: <session-id>" header in our handshake request.
Include a " SessionId : <session - id > " header in our handshake request .
&mut self
url
&Url