Skip to main content

Module request_builder

Module request_builder 

Source
Expand description

Per-call RequestBuilder for overriding headers, query params, and timeouts.

Obtained via Client::request. This allows per-call customization without changing the client-wide configuration.

§Example

let user = client
    .request::<GetUserEndpoint>((42u32,))
    .header("X-Request-Id", "abc123")
    .timeout(Duration::from_secs(5))
    .send()
    .await?;

Structs§

RequestBuilder
A builder for a single request with per-call overrides.