Home
last modified time | relevance | path

Searched refs:retry (Results 1 - 4 of 4) sorted by relevance

/commonlibrary/rust/ylong_http/ylong_http_client/src/util/config/
H A Dsettings.rs91 /// // Never retry.
124 /// Creates a `Retry` that indicates never retry.
131 /// let retry = Retry::none();
137 /// Creates a `Retry` with a max retry times.
146 /// let retry = Retry::max();
152 /// Get the retry times, returns None if not set.
480 let retry = Retry::new(1); in ut_retry_new()
481 assert!(retry.is_ok()); in ut_retry_new()
482 let retry = Retry::new(3); in ut_retry_new()
483 assert!(retry in ut_retry_new()
[all...]
H A Dclient.rs21 pub(crate) retry: Retry,
31 retry: Retry::none(),
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/
H A Dclient.rs162 let mut retries = self.config.retry.times().unwrap_or(0);
405 /// Sets retry times for this client.
407 /// The Retry is the number of times the client will retry the request if
416 /// let builder = ClientBuilder::new().retry(Retry::max());
418 pub fn retry(mut self, retry: Retry) -> Self { in retry() functions
419 self.client.retry = retry; in retry()
1233 /// UT test cases for retry of `Client::request`.
1251 .retry(retry_time in ut_client_request_http1_0_retry()
[all...]
/commonlibrary/rust/ylong_http/ylong_http_client/src/sync_impl/
H A Dclient.rs118 let mut retries = self.config.retry.times().unwrap_or(0); in retry_send_request()

Completed in 4 milliseconds