Home
last modified time | relevance | path

Searched refs:auth (Results 1 - 5 of 5) sorted by relevance

/commonlibrary/rust/ylong_http/ylong_http_client/src/util/
H A Dproxy.rs77 let auth = encode(format!("{username}:{password}").as_bytes());
80 let mut auth = HeaderValue::from_bytes(auth.as_slice()).unwrap(); variables
81 auth.set_sensitive(true);
84 Intercept::All(info) => info.basic_auth = Some(auth),
85 Intercept::Http(info) => info.basic_auth = Some(auth),
86 Intercept::Https(info) => info.basic_auth = Some(auth),
/commonlibrary/rust/ylong_http/ylong_http/src/request/uri/
H A Dmod.rs165 self.authority.as_ref().map(|auth| auth.host()) in host()
181 self.authority.as_ref().and_then(|auth| auth.port()) in port()
285 /// let (scheme, auth, path, query) = uri.into_parts();
287 /// assert_eq!(auth.unwrap().to_string(), String::from("example.com:80"));
438 pub fn authority<T>(mut self, auth: T) -> Self in authority()
444 let auth = auth.try_into()?; in authority()
445 unprocessed.authority = Some(auth); in authority()
702 let mut auth = self.host.as_str().to_string(); to_str() variables
[all...]
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/verify/
H A Dpinning.rs97 let auth = match (parsed.host(), parsed.port()) { in add()
109 let _ = keys.insert(auth, pub_key); in add()
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/connector/
H A Dmod.rs227 let mut auth = None; in connect() variables
232 auth = proxy in connect()
334 auth, in connect()
346 https_connect(config, addr, stream, is_proxy, auth, (host, port)).await in connect()
359 auth: Option<String>,
377 tcp = tunnel(tcp, &host, port, auth)
417 auth: Option<String>,
426 if let Some(value) = auth {
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/conn/
H A Dhttp2.rs195 .and_then(|auth| auth.to_string().ok()); in build_pseudo_headers()

Completed in 4 milliseconds