Skip to main content

request_once

Function request_once 

Source
pub async fn request_once(
    client: &Client,
    method: Method,
    url: &str,
    headers: GoHeaders,
    body: Option<Bytes>,
    timeout: Option<Duration>,
) -> Result<Upstream, ExecError>
Expand description

request without following redirects: a client whose CheckRedirect returns http.ErrUseLastResponse hands back the first answer, 3xx included. Untimed: it reports no stages (Antigravity’s grounding redirects).