Skip to main content

request

Function request 

Source
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; Err means there was none, such as for a host the manifest does not name or a network that is down.