Skip to main content

send

Function send 

Source
pub async fn send(
    pool: &ClientPool,
    bridge: Option<&Arc<dyn ContextBridge>>,
    req: Request,
) -> Result<Response, FetchError>
Expand description

Send a fully-resolved Request and return the Response.

bridge present ⇒ the context-bound path (cookies read from / written back to the browser per hop). Absent ⇒ the standalone path (the pool’s reqwest jar carries cookies).

§Errors

Returns a FetchError for a transport failure, an SSRF-guard denial, a redirect-budget overrun, a redirect: error 3xx, or a timeout.