pub struct HttpConfig {
pub base_url: String,
pub http_method: Option<String>,
pub throw_exception_on_failure: bool,
pub ok_status_code_range: (u16, u16),
pub follow_redirects: bool,
pub connect_timeout: Duration,
pub response_timeout: Option<Duration>,
pub query_params: HashMap<String, String>,
pub allow_private_ips: bool,
pub blocked_hosts: Vec<String>,
}Fields§
§base_url: String§http_method: Option<String>§throw_exception_on_failure: bool§ok_status_code_range: (u16, u16)§follow_redirects: bool§connect_timeout: Duration§response_timeout: Option<Duration>§query_params: HashMap<String, String>§allow_private_ips: bool§blocked_hosts: Vec<String>Implementations§
Source§impl HttpConfig
impl HttpConfig
pub fn from_uri(uri: &str) -> Result<Self, CamelError>
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 moreAuto Trait Implementations§
impl Freeze for HttpConfig
impl RefUnwindSafe for HttpConfig
impl Send for HttpConfig
impl Sync for HttpConfig
impl Unpin for HttpConfig
impl UnsafeUnpin 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