pub async fn request(
client: &Client,
method: Method,
url: &str,
headers: GoHeaders,
body: Option<Bytes>,
timeout: Option<Duration>,
) -> Result<Upstream, ExecError>Expand description
send for any method: http.NewRequest(method, url, body) then Client.Do, with
Go’s redirect rules for that method (a GET follows 301-303 and 307/308 as a GET).
None is Go’s nil body.