MCPcopy Create free account
hub / github.com/Recordscript/recordscript / into_url

Method into_url

libs/hbb_common/src/proxy.rs:68–74  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

66
67impl IntoUrl for Url {
68 fn into_url(self) -> Result<Url, ProxyError> {
69 if self.has_host() {
70 Ok(self)
71 } else {
72 Err(ProxyError::UrlBadScheme(self.to_string()))
73 }
74 }
75
76 fn as_str(&self) -> &str {
77 self.as_ref()

Callers 1

into_proxy_schemeMethod · 0.80

Calls 1

to_stringMethod · 0.80

Tested by

no test coverage detected