execute_reqwest_buffered_limited

Function execute_reqwest_buffered_limited 

Source
pub async fn execute_reqwest_buffered_limited(
    client: &Client,
    request: Request<Vec<u8>>,
    max_response_bytes: usize,
) -> Result<Response<Vec<u8>>, BufferedHttpError>
Expand description

Executes an in-memory HTTP request with reqwest and buffers a strictly bounded response body.

Redirect and timeout behavior come from the supplied reqwest client. Callers retain ownership of endpoint policy, user agent, status handling, and product error mapping.

ยงErrors

Returns a transport error when the request cannot be converted or sent, a response-body error when the configured limit is exceeded or streaming fails, or a response-build error when the buffered response cannot be reconstructed.