pub struct DetectionInput<'a> {
pub status: Option<u16>,
pub server: Option<&'a str>,
pub cf_mitigated: Option<&'a str>,
pub cf_ray: Option<&'a str>,
pub body: &'a str,
}Expand description
Transport-neutral inputs for challenge detection.
Deliberately built from primitives (no http/wreq/hyper types) so the
detector stays in the pure domain layer and can be fed from either the MITM
proxy’s upstream response or the rendered DOM of the headless browser.
Fields§
§status: Option<u16>HTTP status code, when known.
server: Option<&'a str>Value of the Server response header, when present.
cf_mitigated: Option<&'a str>Value of the cf-mitigated response header, when present.
cf_ray: Option<&'a str>Value of the cf-ray response header, when present.
body: &'a strResponse body or rendered DOM HTML.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for DetectionInput<'a>
impl<'a> Clone for DetectionInput<'a>
Source§fn clone(&self) -> DetectionInput<'a>
fn clone(&self) -> DetectionInput<'a>
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 moreimpl<'a> Copy for DetectionInput<'a>
Auto Trait Implementations§
impl<'a> Freeze for DetectionInput<'a>
impl<'a> RefUnwindSafe for DetectionInput<'a>
impl<'a> Send for DetectionInput<'a>
impl<'a> Sync for DetectionInput<'a>
impl<'a> Unpin for DetectionInput<'a>
impl<'a> UnsafeUnpin for DetectionInput<'a>
impl<'a> UnwindSafe for DetectionInput<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more