Skip to main content

fetch_with_timeout

Function fetch_with_timeout 

Source
pub async fn fetch_with_timeout(
    url: &str,
    options: Option<FetchOptions>,
) -> Result<Response, UpdateKitError>
Expand description

Performs an HTTP GET request with HTTPS enforcement and configurable timeout.

Validates that the URL uses HTTPS, then sends a GET request using reqwest with the specified (or default) timeout and optional custom headers.