pub fn request(
method: &str,
url: &str,
headers: &[(&str, &str)],
body: Option<&[u8]>,
) -> Result<Response>Expand description
Sends a request and waits for its response. A response of any status is Ok. A request Hammer refuses, such as to a host the manifest does not name, or one with no response, such as on a network that is down, ends the call with Hammer’s error rather than returning.