(req: &mut http::Request<()>)
| 245 | |
| 246 | #[cfg(not(feature = "browser"))] |
| 247 | fn request_insert_protocol_header(req: &mut http::Request<()>) { |
| 248 | req.headers_mut().insert( |
| 249 | http::header::SEC_WEBSOCKET_PROTOCOL, |
| 250 | const { http::HeaderValue::from_static(ws::v2::BIN_PROTOCOL) }, |
| 251 | ); |
| 252 | } |
| 253 | |
| 254 | #[cfg(not(feature = "browser"))] |
| 255 | fn request_insert_auth_header(req: &mut http::Request<()>, token: Option<&str>) { |
no test coverage detected
searching dependent graphs…