pub struct ProbeOutcome {
pub status: u16,
pub body_bytes: usize,
pub final_host: Option<String>,
}Expand description
Per-source allowlist entry. Matches the schema in
What a HttpClient::probe observed (issue #407).
body_bytes is load-bearing, not decoration: a publisher WAF answers a
scripted client with 202 Accepted and an empty body, which a
status-only report reads as success. Status plus body size separates
“the publisher served me” from “the publisher is holding me at a bot
challenge”.
Fields§
§status: u16HTTP status of the (post-redirect) response.
body_bytes: usizeBytes of body received.
final_host: Option<String>Host of the final URL, after any allowlisted redirects.
Trait Implementations§
Source§impl Clone for ProbeOutcome
impl Clone for ProbeOutcome
Source§fn clone(&self) -> ProbeOutcome
fn clone(&self) -> ProbeOutcome
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 moreSource§impl Debug for ProbeOutcome
impl Debug for ProbeOutcome
impl Eq for ProbeOutcome
Source§impl PartialEq for ProbeOutcome
impl PartialEq for ProbeOutcome
impl StructuralPartialEq for ProbeOutcome
Auto Trait Implementations§
impl Freeze for ProbeOutcome
impl RefUnwindSafe for ProbeOutcome
impl Send for ProbeOutcome
impl Sync for ProbeOutcome
impl Unpin for ProbeOutcome
impl UnsafeUnpin for ProbeOutcome
impl UnwindSafe for ProbeOutcome
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