Skip to main content

request

Function request 

Source
pub fn request(
    addr: SocketAddr,
    method: &str,
    path: &str,
    auth: Option<&str>,
    body: Option<&str>,
    timeout: Duration,
) -> Result<Response>
Expand description

One request. auth is the full Authorization header value when present.