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

Method new

libs/hbb_common/src/proxy.rs:312–317  ·  view source on GitHub ↗
(proxy_scheme: U, ms_timeout: u64)

Source from the content-addressed store, hash-verified

310
311impl Proxy {
312 pub fn new<U: IntoProxyScheme>(proxy_scheme: U, ms_timeout: u64) -> Result<Self, ProxyError> {
313 Ok(Self {
314 intercept: proxy_scheme.into_proxy_scheme()?,
315 ms_timeout,
316 })
317 }
318
319 pub fn is_http_or_https(&self) -> bool {
320 return match self.intercept {

Callers

nothing calls this directly

Calls 1

into_proxy_schemeMethod · 0.80

Tested by

no test coverage detected