Get the key of a url for object store registration. The credential info will be removed
(url: &Url)
| 266 | /// Get the key of a url for object store registration. |
| 267 | /// The credential info will be removed |
| 268 | fn get_url_key(url: &Url) -> String { |
| 269 | format!( |
| 270 | "{}://{}", |
| 271 | url.scheme(), |
| 272 | &url[url::Position::BeforeHost..url::Position::AfterPort], |
| 273 | ) |
| 274 | } |
| 275 | |
| 276 | #[cfg(test)] |
| 277 | mod tests { |
no outgoing calls
searching dependent graphs…