Home
last modified time | relevance | path

Searched refs:Proxy (Results 1 - 13 of 13) sorted by relevance

/commonlibrary/rust/ylong_http/ylong_http_client/src/util/config/
H A Dsettings.rs316 /// Proxy settings.
318 /// `Proxy` has functions which is below:
327 /// # use ylong_http_client::Proxy;
331 /// let proxy = Proxy::http("http://www.example.com").build();
335 /// let proxy = Proxy::https("http://www.example.com").build();
338 /// let proxy = Proxy::all("http://www.example.com").build();
341 pub struct Proxy(proxy::Proxy); structure names
343 impl Proxy { impls
349 /// use ylong_http_client::Proxy;
[all...]
H A Dmod.rs26 pub use settings::{Proxy, ProxyBuilder, Redirect, Retry, SpeedLimit, Timeout};
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/
H A Dproxy.rs14 //! Proxy implementation.
29 list: Vec<Proxy>,
33 pub(crate) fn add_proxy(&mut self, proxy: Proxy) {
37 pub(crate) fn match_proxy(&self, uri: &Uri) -> Option<&Proxy> {
42 /// Proxy is a configuration of client which should manage the destination
45 /// A `Proxy` has below rules:
51 pub(crate) struct Proxy {
56 impl Proxy { impls
65 Ok(Proxy::new(Intercept::Http(ProxyInfo::new(uri)?)))
69 Ok(Proxy
[all...]
/commonlibrary/rust/ylong_http/ylong_http_client/examples/
H A Dsync_proxy_http.rs18 use ylong_http_client::{EmptyBody, HttpClientError, Proxy, Request};
23 .proxy(Proxy::http("https://proxy.example.com").build()?) in main()
/commonlibrary/rust/ylong_http/ylong_http_client/tests/
H A Dsdv_async_http_proxy.rs39 Proxy: true, in sdv_async_client_send_request()
61 ylong_http_client::Proxy::http( in sdv_async_client_send_request()
H A Dsdv_async_http_client_error.rs101 Proxy: false, in sdv_err_req_timeout()
178 Proxy: false, in sdv_err_redirect_wrong_location()
243 Proxy: false, in sdv_err_response_with_wrong_body_length()
H A Dsdv_async_custom_dns_resolver.rs39 Proxy: false, in sdv_client_custom_dns_resolver()
H A Dsdv_async_http_body_io.rs39 Proxy: false, in sdv_body_chunk_and_trailer()
/commonlibrary/c_utils/base/src/
H A Dthread_ex.cpp33 static int Proxy(const ThreadParam* t) in Proxy() function
67 auto t = new ThreadParam; // t would be delete in ThreadParam::Proxy in CreatePThread()
73 para.startRoutine = reinterpret_cast<ThreadFunc>(&ThreadParam::Proxy); in CreatePThread()
/commonlibrary/rust/ylong_http/ylong_http_client/src/sync_impl/
H A Dclient.rs21 ClientConfig, ConnectorConfig, HttpConfig, HttpVersion, Proxy, Redirect, Timeout,
190 /// Options and flags that is related to `Proxy`.
285 /// Adds a `Proxy` to the list of proxies the `Client` will use.
291 /// # use ylong_http_client::{HttpClientError, Proxy};
294 /// let builder = ClientBuilder::new().proxy(Proxy::http("http://www.example.com").build()?);
297 pub fn proxy(mut self, proxy: Proxy) -> Self { in proxy()
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/
H A Dclient.rs31 ClientConfig, ConnectorConfig, HttpConfig, HttpVersion, Proxy, Redirect, Timeout,
281 /// Options and flags that is related to `Proxy`.
423 /// Adds a `Proxy` to the list of proxies the `Client` will use.
429 /// # use ylong_http_client::{HttpClientError, Proxy};
432 /// let builder = ClientBuilder::new().proxy(Proxy::http("http://www.example.com").build()?);
436 pub fn proxy(mut self, proxy: Proxy) -> Self { in proxy()
965 use crate::{Proxy, Timeout};
1093 .proxy(Proxy::http("http://www.example.com").build().unwrap()) in ut_client_builder()
1442 Proxy::http(format!("http://{}{}", handle.addr.as_str(), "/data").as_str()) in ut_client_http_proxy()
/commonlibrary/rust/ylong_http/ylong_http_client/tests/tcp_server/
H A Dasync_utils.rs47 Proxy: false,
H A Dmod.rs37 Proxy: $proxy: expr,

Completed in 6 milliseconds