MCPcopy Create free account
hub / github.com/06chaynes/http-cache / url_parse

Function url_parse

http-cache/src/lib.rs:363–372  ·  view source on GitHub ↗
(s: &str)

Source from the content-addressed store, hash-verified

361/// - `ada-url` crate: `Url::parse(s, None)` returns `Result<Url, ParseUrlError>`
362#[inline]
363pub fn url_parse(s: &str) -> Result<Url> {
364 #[cfg(feature = "url-ada")]
365 {
366 Url::parse(s, None).map_err(|e| -> BoxError { e.to_string().into() })
367 }
368 #[cfg(not(feature = "url-ada"))]
369 {
370 Url::parse(s).map_err(|e| -> BoxError { Box::new(e) })
371 }
372}
373
374/// Set the path component of a URL.
375///

Callers 15

cacacheFunction · 0.85
mokaFunction · 0.85
foyerFunction · 0.85
urlMethod · 0.85
remote_fetchMethod · 0.85
urlMethod · 0.85
remote_fetchMethod · 0.85
urlMethod · 0.85

Calls

no outgoing calls

Tested by 15

cacacheFunction · 0.68
mokaFunction · 0.68
foyerFunction · 0.68
default_modeFunction · 0.68
removes_warningFunction · 0.68
no_store_modeFunction · 0.68
no_cache_modeFunction · 0.68