Skip to content

Conversation

@jprochazk
Copy link
Collaborator

@jprochazk jprochazk commented Dec 4, 2025

ehttp::fetch(
    ehttp::Request::get("https://http.cat/status/200")
        .with_timeout(Some(std::time::Duration::from_secs(10))),
    move |res| { /* ... */ },
)

The timeout for all ehttp requests was always 30 seconds, due to underlying ureq defaults. This adds PR adds a way to configure it.

This is a breaking change due to adding a new field to Request, which was not previously marked #[non_exhaustive].

@jprochazk jprochazk merged commit ceb951b into master Dec 4, 2025
14 of 16 checks passed
@jprochazk jprochazk deleted the support-configurable-timeout branch December 4, 2025 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants