(query: &str, needle: &str)
| 886 | } |
| 887 | |
| 888 | fn query_has_param(query: &str, needle: &str) -> bool { |
| 889 | query.split('&').any(|param| { |
| 890 | param |
| 891 | .split_once('=') |
| 892 | .map(|(key, _)| key == needle) |
| 893 | .unwrap_or(false) |
| 894 | }) |
| 895 | } |
| 896 | |
| 897 | fn websocket_path_with_access_token(path: String, access_token: Option<&str>) -> String { |
| 898 | let Some(access_token) = access_token |
no outgoing calls
no test coverage detected