Searched refs:http (Results 1 - 14 of 14) sorted by relevance
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/config/ |
H A D | mod.rs | 6 // http://www.apache.org/licenses/LICENSE-2.0 16 mod http; modules 22 pub(crate) use http::http2::H2Config; 24 pub(crate) use http::http3::H3Config; 25 pub(crate) use http::{HttpConfig, HttpVersion};
|
H A D | settings.rs | 6 // http://www.apache.org/licenses/LICENSE-2.0 329 /// // All http request will be intercepted by `https://www.example.com`, 331 /// let proxy = Proxy::http("http://www.example.com").build(); 333 /// // All https request will be intercepted by `http://www.example.com`, 334 /// // but http request will link to server directly. 335 /// let proxy = Proxy::https("http://www.example.com").build(); 337 /// // All https and http request will be intercepted by "http://www.example.com". 338 /// let proxy = Proxy::all("http 371 pub fn http(addr: &str) -> ProxyBuilder { http() functions [all...] |
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/ |
H A D | proxy.rs | 6 // http://www.apache.org/licenses/LICENSE-2.0 64 pub(crate) fn http(uri: &str) -> Result<Self, HttpClientError> { 279 let proxy = Proxy::http("http://www.example.com").unwrap(); in ut_via_proxy() 280 let uri = Uri::from_bytes(b"http://www.example2.com").unwrap(); in ut_via_proxy() 282 assert_eq!(res.to_string(), "http://www.example.com:80"); in ut_via_proxy() 295 proxies.add_proxy(Proxy::http("http://www.aaa.com").unwrap()); in ut_proxies() 296 proxies.add_proxy(Proxy::https("http://www.bbb.com").unwrap()); in ut_proxies() 298 let uri = Uri::from_bytes(b"http in ut_proxies() [all...] |
/commonlibrary/rust/ylong_http/ylong_http_client/examples/ |
H A D | sync_proxy_http.rs | 6 // http://www.apache.org/licenses/LICENSE-2.0 23 .proxy(Proxy::http("https://proxy.example.com").build()?) in main() 27 let request = Request::get("http://127.0.0.1:3000") in main()
|
/commonlibrary/rust/ylong_json/examples/ |
H A D | ylong_json_perf.rs | 6 // http://www.apache.org/licenses/LICENSE-2.0 35 "Url": "http://www.example.com/image/481989943",
|
/commonlibrary/rust/ylong_http/ylong_http_client/src/sync_impl/ |
H A D | client.rs | 6 // http://www.apache.org/licenses/LICENSE-2.0 185 http: HttpConfig, 210 http: HttpConfig::default(), in new() 229 self.http.version = HttpVersion::Http1; in http1_only() 294 /// let builder = ClientBuilder::new().proxy(Proxy::http("http://www.example.com").build()?); 527 *request_uri = Uri::from_bytes(b"http://_:80").unwrap(); in ut_request_client_err()
|
/commonlibrary/rust/ylong_json/benches/task_helpers/ |
H A D | mod.rs | 6 // http://www.apache.org/licenses/LICENSE-2.0 30 "Url": "http://www.example.com/image/481989943",
|
/commonlibrary/rust/ylong_json/tests/ |
H A D | sdv_adapter_test.rs | 6 // http://www.apache.org/licenses/LICENSE-2.0 26 "Url": "http://www.example.com/image/481989943", 92 "http://www.example.com/image/481989943"
|
H A D | sdv_adapt_serde_test.rs | 6 // http://www.apache.org/licenses/LICENSE-2.0 57 "Url": "http://www.example.com/image/481989943", 75 url: String::from("http://www.example.com/image/481989943"), in sdv_adapt_serde_example_one()
|
H A D | ylong_json_sdv_test.rs | 6 // http://www.apache.org/licenses/LICENSE-2.0 23 "Url": "http://www.example.com/image/481989943", 143 "http://www.example.com/image/481989943".into()
|
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/ |
H A D | client.rs | 6 // http://www.apache.org/licenses/LICENSE-2.0 276 http: HttpConfig, 289 /// Resolver to http DNS. 309 http: HttpConfig::default(), in new() 332 self.http.version = HttpVersion::Http1; in http1_only() 432 /// let builder = ClientBuilder::new().proxy(Proxy::http("http://www.example.com").build()?); 496 let tls_builder = match self.http.version { in build() 525 inner: ConnPool::new(self.http, connector), in build() 544 self.http in http2_prior_knowledge() [all...] |
/commonlibrary/rust/ylong_http/ylong_http_client/tests/ |
H A D | sdv_async_http_proxy.rs | 6 // http://www.apache.org/licenses/LICENSE-2.0 61 ylong_http_client::Proxy::http( in sdv_async_client_send_request() 62 format!("http://{}{}", handle.addr.as_str(), "/data").as_str(), in sdv_async_client_send_request()
|
/commonlibrary/rust/ylong_http/ylong_http/src/request/ |
H A D | mod.rs | 6 // http://www.apache.org/licenses/LICENSE-2.0 684 uri: Uri::http(), in default()
|
/commonlibrary/rust/ylong_http/ylong_http/src/request/uri/ |
H A D | mod.rs | 6 // http://www.apache.org/licenses/LICENSE-2.0 48 /// http://username:password@example.com:80/ 60 /// .scheme("http") 67 /// assert_eq!(uri.scheme().unwrap().as_str(), "http"); 72 /// assert_eq!(uri.to_string(), "http://example.com:80/foo?a=1"); 74 /// let uri = Uri::from_bytes(b"http://example.com:80/foo?a=1").unwrap(); 75 /// assert_eq!(uri.to_string(), "http://example.com:80/foo?a=1"); 94 pub(crate) fn http() -> Uri { 127 /// let uri = Uri::from_bytes(b"http://example.com:80/foo?a=1").unwrap(); 128 /// assert_eq!(uri.scheme().unwrap().as_str(), "http"); [all...] |
Completed in 8 milliseconds