emilk / emilk/ehttp

Add methods for creating a PUT and DELETE request

Open
#72 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
396
Forks
36
PR merge metrics
No merged PRs in 30d

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:
```rust
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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.