pub struct HttpProbe { /* private fields */ }Expand description
One validated, bodyless discovery request.
Implementations§
Source§impl HttpProbe
impl HttpProbe
Sourcepub fn new(url: Url, method: HttpProbeMethod) -> Result<Self, HttpEvidenceError>
pub fn new(url: Url, method: HttpProbeMethod) -> Result<Self, HttpEvidenceError>
Creates a request for one absolute HTTP or HTTPS URL.
Sourcepub fn with_header(
self,
name: impl Into<String>,
value: impl Into<String>,
) -> Result<Self, HttpEvidenceError>
pub fn with_header( self, name: impl Into<String>, value: impl Into<String>, ) -> Result<Self, HttpEvidenceError>
Adds or replaces a validated request header.
Host, hop-by-hop framing headers, and proxy authorization are
rejected because they can change the scoped destination or transport
interpretation. Authentication and cookie headers remain explicit host
choices for authorized authenticated scans.
Sourcepub fn method(&self) -> HttpProbeMethod
pub fn method(&self) -> HttpProbeMethod
Returns the discovery method.
Trait Implementations§
impl Eq for HttpProbe
impl StructuralPartialEq for HttpProbe
Auto Trait Implementations§
impl Freeze for HttpProbe
impl RefUnwindSafe for HttpProbe
impl Send for HttpProbe
impl Sync for HttpProbe
impl Unpin for HttpProbe
impl UnsafeUnpin for HttpProbe
impl UnwindSafe for HttpProbe
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more