pub async fn send_prepared(
request: &Request,
client: &HttpClient,
) -> Result<Response, SendraError>Expand description
Send a request that is already exactly what should go over the wire.
Identical to send except that Config::apply is the caller’s job and
has already happened. There is no &Config here at all: the only thing this
half ever read from it was the timeout, and that now lives in the client
it is handed.
It exists because of pre_request. The ordering the scripting feature is
built on puts the script strictly after the config and strictly before the
wire, and a script’s most obvious use — removing a header the config
injected — only works if nothing re-merges the config afterwards. So the
seam has to be somewhere, and here it is named, and says in its own
signature that configuration is not its problem because it has already been
handled.
Prefer send unless there is something to do in between.