pub struct HttpRequest {
pub method: Option<String>,
pub headers: Vec<(String, String)>,
pub body: Option<String>,
pub contains: Option<String>,
pub follow: bool,
}Expand description
What an http check sends and looks for beyond a GET and its status (all optional).
Fields§
§method: Option<String>The method, when not a GET.
headers: Vec<(String, String)>Headers sent as written, in order.
body: Option<String>The request body, sent as it is.
contains: Option<String>Text the response body must contain.
follow: boolFollow redirects (up to HTTP_MAX_REDIRECTS) and compare the final status.
Trait Implementations§
Source§impl Clone for HttpRequest
impl Clone for HttpRequest
Source§impl Debug for HttpRequest
impl Debug for HttpRequest
Source§impl Default for HttpRequest
impl Default for HttpRequest
impl Eq for HttpRequest
Source§impl PartialEq for HttpRequest
impl PartialEq for HttpRequest
impl StructuralPartialEq for HttpRequest
Auto Trait Implementations§
impl Freeze for HttpRequest
impl RefUnwindSafe for HttpRequest
impl Send for HttpRequest
impl Sync for HttpRequest
impl Unpin for HttpRequest
impl UnsafeUnpin for HttpRequest
impl UnwindSafe for HttpRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.