Add methods for creating a PUT and DELETE request
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
Research direction
Start by reading the public Request struct and its existing GET and POST methods, then inspect how the private ehttp::type module prevents constructing requests in version 0.6.0. Define the intended public way to create PUT and DELETE requests and verify that both methods preserve the existing request options and can be used outside the crate.
Written by the indexing model from the issue text.
Description
Currently the Request struct only has methods for GET and POST. I think it would make sense to add also the PUT and DELETE. Up to version 0.5.0, I generated them by hand like for example:
let req = ehttp::Request {
method: "PUT".to_string(),
url: put_url,,
body: json,
headers: ehttp::Headers::new(&[("Content-Type", "application/json")]),
};
In the version 0.6.0 I see two new fields mode and timeout were added. however the ehttp::type module is private and the Request struct can't be constructed outside of the ehttp crate.
- Dominant language
- Rust
- Stars
- 396
- Forks
- 36
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
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 Under an hour Newbie friendliness 88/100
-
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
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug team:backend track:services-maintenance
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
cowprotocol/services#4950 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·