pub struct SsrfClientOptions {
pub connect_timeout: Duration,
pub request_timeout: Duration,
pub policy: SsrfPolicy,
}Expand description
Options for building an SSRF-hardened reqwest::Client.
Fields§
§connect_timeout: Duration§request_timeout: Duration§policy: SsrfPolicyImplementations§
Source§impl SsrfClientOptions
impl SsrfClientOptions
pub fn new(policy: SsrfPolicy) -> Self
pub fn with_connect_timeout(self, d: Duration) -> Self
pub fn with_request_timeout(self, d: Duration) -> Self
Trait Implementations§
Source§impl Clone for SsrfClientOptions
impl Clone for SsrfClientOptions
Source§fn clone(&self) -> SsrfClientOptions
fn clone(&self) -> SsrfClientOptions
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 SsrfClientOptions
impl RefUnwindSafe for SsrfClientOptions
impl Send for SsrfClientOptions
impl Sync for SsrfClientOptions
impl Unpin for SsrfClientOptions
impl UnsafeUnpin for SsrfClientOptions
impl UnwindSafe for SsrfClientOptions
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