MCPcopy Create free account
hub / github.com/base/base / normalize_wss_to_https

Function normalize_wss_to_https

crates/utilities/jwt/src/validator.rs:220–227  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

218
219 #[test]
220 fn normalize_wss_to_https() {
221 let url = Url::parse("wss://localhost:8551/path").unwrap();
222 let result = JwtValidator::normalize_engine_url(url).unwrap();
223 assert_eq!(result.scheme(), "https");
224 assert_eq!(result.host_str(), Some("localhost"));
225 assert_eq!(result.port(), Some(8551));
226 assert_eq!(result.path(), "/path");
227 }
228
229 #[test]
230 fn normalize_unsupported_scheme_error() {

Callers

nothing calls this directly

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected