pub struct HttpProbe {
pub url: String,
pub method: String,
pub headers: Vec<(String, String)>,
pub timeout: Duration,
pub follow_redirects: bool,
pub allow_private: bool,
pub connect_to: Option<SocketAddr>,
pub tls: Arc<ClientConfig>,
}Expand description
One HTTP check.
Fields§
§url: String§method: StringGET or HEAD.
headers: Vec<(String, String)>§timeout: Duration§follow_redirects: bool§allow_private: bool§connect_to: Option<SocketAddr>Dial this address instead of resolving the URL’s host: an app’s own
endpoint, exempt from the address policy. The URL’s host still goes
in the Host header.
tls: Arc<ClientConfig>Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HttpProbe
impl !UnwindSafe for HttpProbe
impl Freeze for HttpProbe
impl Send for HttpProbe
impl Sync for HttpProbe
impl Unpin for HttpProbe
impl UnsafeUnpin for HttpProbe
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