pub struct HttpAnswer {
pub status: u16,
pub location: Option<String>,
pub body: Vec<u8>,
pub latency: Duration,
pub cert_expires: Option<u64>,
pub final_url: String,
}Expand description
What an HTTP check got back.
Fields§
§status: u16§location: Option<String>§body: Vec<u8>The start of the body (at most MAX_BODY), de-chunked.
latency: Duration§cert_expires: Option<u64>The server certificate’s expiry, unix seconds (HTTPS).
final_url: StringThe URL that answered, after redirects, without its query.
Trait Implementations§
Source§impl Clone for HttpAnswer
impl Clone for HttpAnswer
Source§impl Debug for HttpAnswer
impl Debug for HttpAnswer
Auto Trait Implementations§
impl Freeze for HttpAnswer
impl RefUnwindSafe for HttpAnswer
impl Send for HttpAnswer
impl Sync for HttpAnswer
impl Unpin for HttpAnswer
impl UnsafeUnpin for HttpAnswer
impl UnwindSafe for HttpAnswer
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