pub struct SecurityProfile {
pub save_cookies: bool,
pub send_referer: bool,
pub min_tls_version: Option<Version>,
pub redirect: Policy,
}Available on crate feature
api only.Expand description
Default Security Profile (strict_1_2):
- Cookies: Not saved, Referer: Not sent
- TLS: 1.2+ minimum required
- Redirects: Up to 3 allowed
Fields§
§send_referer: bool§min_tls_version: Option<Version>§redirect: PolicyImplementations§
Source§impl SecurityProfile
impl SecurityProfile
Sourcepub fn strict_1_3() -> Self
pub fn strict_1_3() -> Self
- Cookies: Not saved, Referer: Not sent
- TLS: 1.3+ minimum
- Redirects: Up to 3 allowed
Sourcepub fn strict_1_2() -> Self
pub fn strict_1_2() -> Self
- Cookies: Not saved, Referer: Not sent
- TLS: 1.2+ minimum
- Redirects: Up to 3 allowed
Sourcepub fn permissive() -> Self
pub fn permissive() -> Self
- Cookies: Saved, Referer: Sent
- TLS: 1.2+ minimum
- Redirects: Up to 10 allowed
Sourcepub fn test() -> Self
pub fn test() -> Self
- Cookies: Not saved, Referer: Not sent
- TLS: No minimum version
- Redirects: Up to 3 allowed
Sourcepub fn debug() -> Self
pub fn debug() -> Self
- Cookies: Saved, Referer: Sent
- TLS: No minimum version
- Redirects: Up to 15 allowed
pub fn redirect(self, policy: Policy) -> Self
Trait Implementations§
Source§impl Debug for SecurityProfile
impl Debug for SecurityProfile
Auto Trait Implementations§
impl Freeze for SecurityProfile
impl !RefUnwindSafe for SecurityProfile
impl Send for SecurityProfile
impl Sync for SecurityProfile
impl Unpin for SecurityProfile
impl !UnwindSafe for SecurityProfile
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