pub async fn send(
client: &Client,
url: &str,
headers: GoHeaders,
body: impl Into<Bytes>,
timeout: Option<Duration>,
) -> Result<Upstream, ExecError>Expand description
POSTs body the way Go’s http.Client.Do does, following redirects itself: at
most ten requests, 301/302/303 turn a POST into a body-less GET, 307/308 resend the
body, the initial headers are copied to every hop (credentials only within the
original domain), a custom Host survives only relative redirects, and the previous
URL becomes Referer. timeout bounds the exchange.