You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code and documentation PRs are always welcome. Just remember to list out introduced changes.
2
+
Code contributions and documentation improvements are always welcome! Please include a clear description of the changes introduced in your pull requests.
3
3
4
-
If you want to suggest some improvements, report a bug, discuss a functionality, etc., feel free to open an issue.
4
+
For suggestions, bug reports, or feature requests, please open an issue.
Take a look at [more examples](https://github.com/jayjamesjay/http_req/tree/master/examples)
17
+
on all other platforms. But it also supports [rustls](https://crates.io/crates/rustls).
18
+
19
+
## All functionalities
20
+
21
+
- Support for both HTTP and HTTPS protocols via [rust-native-tls](https://crates.io/crates/native-tls) (or optionally [rustls](https://crates.io/crates/rustls))
22
+
- Creating and sending HTTP requests using the `Request` type (with extended capabilities provided via `RequestMessage` and `Stream`)
23
+
- Representing HTTP responses with the `Response` type, allowing easy access to details like the status code and headers
24
+
- Handling redirects using the `RedirectPolicy`
25
+
- Support for Basic and Bearer authentication
26
+
- Processing responses with `Transfer-Encoding: chunked`
27
+
- Managing absolute `Uri`s and partial support for relative `Uri`s
28
+
- Enforcing timeouts on requests
29
+
- Downloading data in a streaming fashion, allowing direct saving to disk (minimizing RAM usage)
30
+
-`Error` handling system allowing for better debugging
31
+
- Utility functions for easily sending common request types: `get`, `head`, `post`
35
32
36
33
## Usage
37
34
@@ -41,7 +38,7 @@ In order to use `http_req` with default configuration, add the following lines t
41
38
42
39
```toml
43
40
[dependencies]
44
-
http_req = "^0.13"
41
+
http_req = "^0.14"
45
42
```
46
43
47
44
### Rustls
@@ -50,9 +47,35 @@ In order to use `http_req` with `rustls` in your project, add the following line
0 commit comments