pub struct HttpConfig {
pub timeout: Duration,
pub connect_timeout: Duration,
pub max_retries: u32,
pub verbose: bool,
pub user_agent: String,
pub return_response_headers: bool,
pub proxy: Option<ProxyConfig>,
pub enable_rate_limit: bool,
pub retry_config: Option<RetryConfig>,
}Expand description
HTTP request configuration
Fields§
§timeout: DurationRequest timeout
connect_timeout: DurationTCP connection timeout (default: 10 seconds)
max_retries: u32👎Deprecated: Use retry_config instead
Maximum retry attempts (deprecated, use retry_config instead)
verbose: boolWhether to enable verbose logging
user_agent: StringDefault User-Agent header value
return_response_headers: boolWhether to include response headers in the result
proxy: Option<ProxyConfig>Optional proxy configuration
enable_rate_limit: boolWhether to enable rate limiting
retry_config: Option<RetryConfig>Optional retry configuration (uses default if None)
Trait Implementations§
Source§impl Clone for HttpConfig
impl Clone for HttpConfig
Source§fn clone(&self) -> HttpConfig
fn clone(&self) -> HttpConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HttpConfig
impl Debug for HttpConfig
Source§impl Default for HttpConfig
impl Default for HttpConfig
Source§fn default() -> HttpConfig
fn default() -> HttpConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HttpConfig
impl RefUnwindSafe for HttpConfig
impl Send for HttpConfig
impl Sync for HttpConfig
impl Unpin for HttpConfig
impl UnwindSafe for HttpConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more