http_req icon indicating copy to clipboard operation
http_req copied to clipboard

simple HTTP client with built-in HTTPS support

Results 9 http_req issues
Sort by recently updated
recently updated
newest added

it will block in get/post when the response is 204

Are there any plans on adding async support? Let me know if a pull request in that direction would be welcome.

enhancement

In some website, it could make stange response. For example, one of the largest search engines *Baidu*: ```rust let mut body = Vec::new(); http_req::request::Request::new(&"https://www.baidu.com/".try_into().unwrap()) // .header("Referer", "") // It will...

enhancement

`copy_with_timeout()` as implemented in v0.7.2 may exceed its deadline: https://github.com/jayjamesjay/http_req/blob/eba0471369662667c27c0a46541b8cb464c8edc0/src/request.rs#L50-L75 In here the timeout is only checked after the read operation is issued. However, a call to `read()` [may block](https://doc.rust-lang.org/stable/std/io/trait.Read.html#tymethod.read)...

bug
help wanted

I'm tryinng to implement a HTTPS2 client, but it failed with status 400. The repreduction project goes as https://github.com/sammyne/http-playground/tree/master/v2. Really appreciate if someone can help me out~

enhancement

It seems the library directly manages TCP connections, thus is unaware to proxies. It would be nice to support making connections through proxy, ideally respecting environment variables such as `https_proxy`...

enhancement

Relative URis such as `/path` aren't handled correctly. Rather than `.path()` and `.resource()` returning `/path`, they simply return `None`. ```rust use http_req::uri::Uri; fn main() { // I am expecting `Some("/path")`...

enhancement
good first issue

Does this package have an option to follow redirects?

enhancement

doesn't work, should be behind a feature, thought i'd take a stab at https://github.com/jayjamesjay/http_req/issues/30 anybody able to help finish / do it better? :)