/commonlibrary/rust/ylong_http/ylong_http_client/src/util/ |
H A D | alt_svc.rs | 35 pub(crate) host: Option<Host>, 55 // the first value_it is alpn="[host]:port" in parse_alt_svc() 63 let (host, port) = if index == 0 { in parse_alt_svc() 92 host, in parse_alt_svc() 107 let Some(host) = uri.host() else { 123 if let Some(alt_svc) = Self::parse_alt_svc(host, slice) {
|
H A D | normalizer.rs | 66 let host = match uri.host() { 67 Some(host) => host.clone(), 68 None => return err_from_msg!(Request, "No host in url"), 94 new_uri = new_uri.authority(format!("{}:{}", host.as_str(), port).as_bytes()); 189 let host_value = match (uri.host(), uri.port()) { 190 (Some(host), Some(port)) => { 196 host.to_string() 201 (Some(host), Non [all...] |
H A D | proxy.rs | 118 .map(|no_proxy| no_proxy.contain(uri.host().unwrap().as_str())) 146 /// ProxyInfo which contains authentication, scheme and host. 203 for host in no_proxy_vec { 204 let address = match Uri::from_bytes(host.as_bytes()) { 210 // use unwrap directly, host has been checked before 211 match address.host().unwrap().as_str().parse::<IpAddr>() { 213 Err(_) => domains_list.push(host.to_string()),
|
/commonlibrary/rust/ylong_http/ylong_http_client/tests/common/ |
H A D | async_utils.rs | 24 Host: $host: expr, 86 Host: $host, 113 Host: $host: expr, 174 Host: $host, 208 Host: $host: expr, 238 Host: $host, 265 Host: $host: expr, 292 Host: $host, 321 Host: $host: expr, 339 .url(format!("{}:{}", $host, [all...] |
H A D | sync_utils.rs | 23 Host: $host: expr, 85 Host: $host, 111 Host: $host: expr, 172 Host: $host, 206 Host: $host: expr, 235 Host: $host, 264 Host: $host: expr, 289 Host: $host, 320 Host: $host: expr, 339 Host: $host, [all...] |
H A D | mod.rs | 224 Host: $host: expr, 234 .url(format!("{}:{}", $host, $port).as_str()) 248 Host: $host: expr, 258 .url(format!("{}:{}", $host, $port).as_str()) 296 "Assert request host failed",
|
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/verify/ |
H A D | pinning.rs | 29 /// The map key is server authority(host:port), value is Base64(sha256(Server's 97 let auth = match (parsed.host(), parsed.port()) { in add() 99 return err_from_msg!(Build, "uri has no host"); in add() 101 (Some(host), Some(port)) => { in add() 102 format!("{}:{}", host.as_str(), port.as_str()) in add() 104 (Some(host), None) => { in add() 105 format!("{}:443", host.as_str()) in add() 246 "HttpClientError { ErrorKind: Build, Cause: uri has no host }" in ut_pubkey_pins_builder_add()
|
/commonlibrary/rust/ylong_http/ylong_http/src/request/uri/ |
H A D | mod.rs | 68 /// assert_eq!(uri.host().unwrap().as_str(), "example.com"); 145 /// assert_eq!(authority.host().as_str(), "example.com"); 162 /// assert_eq!(uri.host().unwrap().as_str(), "example.com"); 164 pub fn host(&self) -> Option<&Host> { in host() functions 165 self.authority.as_ref().map(|auth| auth.host()) in host() 334 if let Some(host) = self.host() { in to_string() 335 builder.push_str(host.as_str()); in to_string() 634 host: Host, 669 /// let host 672 pub fn host(&self) -> &Host { host() functions [all...] |
/commonlibrary/ets_utils/js_api_module/url/ |
H A D | js_url.h | 41 BIT10 = 10, // 10:Bit 10 Set to true,The host is IPV6
57 std::string host = "";
member 74 void AnalysisOpaqueHost(std::string input, std::string& host,
76 void AnalyseIPv4(const std::string& input, std::string& host,
78 void AnalysisHost(std::string& input, std::string& host,
94 void FormatIpv4(std::vector<std::string> nums, std::string& host,
104 void IPv6Host(std::string& input, std::string& host,
135 * Gets the host name portion of the URL��not include the port.
140 * Sets the host name portion of the URL��not include the port.
182 * Sets the host portio [all...] |
H A D | js_url.cpp | 332 void AnalysisOpaqueHost(std::string input, std::string& host,
in AnalysisOpaqueHost() argument 344 host = input;
in AnalysisOpaqueHost() 487 void IPv6Host(std::string& input, std::string& host,
in IPv6Host() argument 511 host = "[" + input + "]";
in IPv6Host() 651 void FormatIpv4(std::vector<std::string> nums, std::string& host,
in FormatIpv4() argument 665 host = res;
in FormatIpv4() 680 host = res + temp;
in FormatIpv4() 688 void AnalyseIPv4(const std::string& input, std::string& host,
in AnalyseIPv4() argument 710 host = res;
in AnalyseIPv4() 714 host in AnalyseIPv4() 729 AnalysisHost(std::string& input, std::string& host, std::bitset<static_cast<size_t>(BitsetStatusFlag::BIT_STATUS_11)>& flags, bool special) AnalysisHost() argument [all...] |
/commonlibrary/rust/ylong_http/ylong_http_client/tests/tcp_server/ |
H A D | mod.rs | 103 let host = format_header_str("host", addr.to_string().as_str()); 104 assert!(request_str.contains(host.as_str()), "Incorrect host header!"); 105 length += host.len(); 206 let host = format_header_str("host", addr.to_string().as_str()); 207 assert!(request_str.contains(host.as_str()), "Incorrect host header!"); 208 length += host [all...] |
/commonlibrary/ets_utils/js_api_module/uri/ |
H A D | js_uri.cpp | 117 pos = data_.find("//"); // userInfo path host port ipv4 or ipv6
in AnalysisUri() 216 // find ipv4 or ipv6 or host
in AnalysisHost() 231 errStr_ = "host does not conform to the rule";
in AnalysisHost() 237 uriData_.host = "";
in AnalysisHost() 338 uriData_.host = data_;
in AnalysisIPV4() 361 uriData_.host = data_;
in AnalysisIPV6() 376 if (uriData_.host != other.uriData_.host) {
in Equals() 555 if (!uriData_.host.empty()) {
in Split() 560 normalizeUri += uriData_.host;
in Split() [all...] |
H A D | js_uri.h | 33 std::string host = "";
member
|
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/connector/ |
H A D | mod.rs | 271 let host = uri.host().unwrap().to_string(); in connect() 311 QuicConn::connect(&mut stream, &config, &host).await in connect() 335 (host, port), in connect() 346 https_connect(config, addr, stream, is_proxy, auth, (host, port)).await in connect() 360 (host, port): (String, u16), 377 tcp = tunnel(tcp, &host, port, auth) 384 .ssl_new(&host) 415 host: &str, 423 "CONNECT {host} [all...] |
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/quic/ |
H A D | mod.rs | 66 host: &str, 86 let mut new_ssl = tls_config.ssl_new(host).unwrap().into_inner();
|
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/conn/ |
H A D | http2.rs | 192 let host = request_part in build_pseudo_headers() 194 .remove("host") in build_pseudo_headers() 196 pseudo.set_authority(host); in build_pseudo_headers() 420 Header: "host", "127.0.0.1:0", in ut_http2_build_headers_payload()
|
/commonlibrary/ets_utils/js_api_module/url/test/ |
H A D | test_napi.cpp | 202 OHOS::Url::URL url("http://username:password@host:8080/directory/file?query#fragment"); in HWTEST_F() 229 OHOS::Url::URL url("http://username:password@host:8080/directory/file?query#fragment"); in HWTEST_F() 414 OHOS::Url::URL url("http://username:password@host:8080/directory/file?query#fragment"); in HWTEST_F() 423 OHOS::Url::URL url("ftp://username:password@host:8080/directory/file?query#fragment"); in HWTEST_F() 432 OHOS::Url::URL url("https://username:password@host:8080/directory/file?query#fragment"); in HWTEST_F() 441 OHOS::Url::URL url("https://username:password@host:8080/directory/file?query#fragment"); in HWTEST_F() 453 OHOS::Url::URL url("https://username:password@host:8080/directory/file?query#fragment"); in HWTEST_F() 465 OHOS::Url::URL url("https://username:password@host:8080/directory/file?query#fragment"); in HWTEST_F() 477 OHOS::Url::URL url("https://username:password@host:8080/directory/file?query#fragment"); in HWTEST_F() 489 OHOS::Url::URL url("http://username:password@host in HWTEST_F() 2253 std::string host; HWTEST_F() local 2268 std::string host; HWTEST_F() local 2277 std::string host; HWTEST_F() local 2496 std::string host = ""; HWTEST_F() local [all...] |