pub struct NativeClientConfig {
pub connect_timeout_ms: u64,
pub read_timeout_ms: u64,
pub max_response_size: usize,
pub follow_redirects: bool,
pub max_redirects: u32,
pub buffer_size: usize,
}Expand description
Native HTTP client configuration.
Fields§
§connect_timeout_ms: u64Timeout for connect operations (ms).
read_timeout_ms: u64Timeout for read operations (ms).
max_response_size: usizeMaximum response body size.
follow_redirects: boolFollow redirects automatically.
max_redirects: u32Maximum redirects to follow.
buffer_size: usizeBuffer size for streaming.
Implementations§
Source§impl NativeClientConfig
impl NativeClientConfig
Sourcepub fn for_large_downloads() -> Self
pub fn for_large_downloads() -> Self
Config for downloading large files.
Trait Implementations§
Source§impl Clone for NativeClientConfig
impl Clone for NativeClientConfig
Source§fn clone(&self) -> NativeClientConfig
fn clone(&self) -> NativeClientConfig
Returns a copy 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 NativeClientConfig
impl Debug for NativeClientConfig
Auto Trait Implementations§
impl Freeze for NativeClientConfig
impl RefUnwindSafe for NativeClientConfig
impl Send for NativeClientConfig
impl Sync for NativeClientConfig
impl Unpin for NativeClientConfig
impl UnwindSafe for NativeClientConfig
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