pub struct HttpDefaults {
pub timeout: Duration,
pub connect_timeout: Duration,
pub pool_max_idle_per_host: usize,
pub user_agent: String,
}Expand description
Tunable defaults applied to every provider’s reqwest::Client.
Provider crates clone DEFAULT_HTTP_DEFAULTS and override fields
when they need per-provider tuning (e.g. a higher pool size for a
bulk-embedding endpoint).
Fields§
§timeout: DurationWhole-request timeout.
connect_timeout: DurationTCP connect timeout.
pool_max_idle_per_host: usizePer-host keep-alive pool ceiling.
user_agent: StringUser-Agent header value. Empty string leaves reqwest’s default.
Trait Implementations§
Source§impl Clone for HttpDefaults
impl Clone for HttpDefaults
Source§fn clone(&self) -> HttpDefaults
fn clone(&self) -> HttpDefaults
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HttpDefaults
impl RefUnwindSafe for HttpDefaults
impl Send for HttpDefaults
impl Sync for HttpDefaults
impl Unpin for HttpDefaults
impl UnsafeUnpin for HttpDefaults
impl UnwindSafe for HttpDefaults
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