pub struct HttpConfig {
pub timeout: u64,
pub max_retries: u32,
pub verbose: bool,
pub user_agent: String,
pub return_response_headers: bool,
pub proxy: Option<String>,
pub enable_rate_limit: bool,
pub retry_config: Option<RetryConfig>,
}Expand description
HTTP request configuration
Fields§
§timeout: u64Request timeout in 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<String>Optional proxy URL
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
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