Keep `ureq::Agent` for native clients
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by reading the existing fetch entry point and the native-client integration around ureq::Agent; no source files or tests are named in the issue. Trace how requests are created across native and WASM targets, then define how an Agent preserves cookies between calls while keeping the current fetch API usable, with tests covering repeated requests and both target paths.
Written by the indexing model from the issue text.
Description
I love the simple API of this crate! It can be useful if ehttp supports saving cookies, such as login function. Currently, the "agent" (ureq::Agent type) is not continuous between each request.
A cross-platform and object-oriented example might look like this:
pub struct Agent {
#[cfg(not(target_arch = "wasm32"))]
agent: ureq::Agent,
}
// save the session if we need (compatible syntax)
let session = Agent::new();
session.fetch(req, |r| match r {
Ok(r) if r.ok => alert("Login successfully!"),
_ => alert("Login failed!"),
});
// original "fetch" function
fetch(req, |r| match r {
Ok(r) if r.ok => alert("Login successfully!"),
_ => alert("Login failed!"),
});
- Dominant language
- Rust
- Stars
- 404
- Forks
- 38
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from emilk/ehttp
-
Difficulty 1/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
autofixer: follow-up triage: bug triage: classified triage: correctness triage: has-reproducer
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
tursodatabase/turso#13221 ·
Maintainers usually reply within 1 day
-
Update Wasmtime to 48.0.11 for RUSTSEC-2026-0648Possibly taken @flyingrobots claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
flyingrobots/edict#457 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
O-windows relnotes relnotes-needs-review relnotes-tracking-issue T-libs
Difficulty 1/5 Under an hour Newbie friendliness 68/100
Maintainers usually reply within 1 day