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
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
+
## Features
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
@@ -53,6 +50,23 @@ In order to use `http_req` with `rustls` in your project, add the following line
0 commit comments