pub struct HttpConfig {
pub base_url: Url,
pub sse_endpoint: Option<String>,
pub timeout: Duration,
pub headers: Vec<(String, String)>,
pub enable_pooling: bool,
pub max_idle_per_host: usize,
}Available on crate feature
http and non-WebAssembly only.Expand description
HTTP transport configuration.
Fields§
§base_url: UrlBase URL for HTTP requests
sse_endpoint: Option<String>SSE endpoint for receiving notifications
timeout: DurationRequest timeout
headers: Vec<(String, String)>Additional headers to include in requests
enable_pooling: boolEnable connection pooling
max_idle_per_host: usizeMaximum idle connections in pool
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