pub fn http_request(
base_url: &str,
method: &str,
path: &str,
body: Option<&str>,
timeout: Duration,
cancel: &dyn Fn() -> bool,
) -> Result<(u16, String), HttpError>Expand description
One blocking HTTP/1.1 exchange with Connection: close.