hackney
hackney copied to clipboard
simple HTTP client in Erlang
I am trying to build a simple reverse proxy with https://hexdocs.pm/reverse_proxy_plug and its https://github.com/edgurgel/httpoison http client plugin. When I forward requests to a (angular dev-). server, listening on localhost:4200, they...
Hello! I was playing around with `hackney` and tried to set multiple cookies in the same request. I used this example code: ``` hackney:request(get,"http://httpbin.org/cookies",[{,}],,[{cookie,[{,,[]},{,,[]}]}, {use_cookies,true}]). ``` When I checked the...
Hackney fails with `nxdomain` when the URL does not have path set and has query with `/` character. Likely because it is parsing URL incorrectly in this case. `$ rebar3...
Hackney lists `parse_trans` as needed to be started at runtime, it was added in commit 92c0f4c4517e203fcd6dc700b4602e1e0067ede5 to `hackney.app.src`. Is it needed after compiling? The reason I'm asking is that I...
This issue is similar to nodejs/undici#1521. # Bug Description As outlined in [RFC 7231](https://datatracker.ietf.org/doc/html/rfc7231#section-7.1.2), the Location header can feature relative paths, including strings without a leading slash, like `location: abc`....
When `all_proxy=` it will throw an error: ``` [error] GenServer #PID terminating ** (CaseClauseError) no case clause matching: [] (hackney 1.20.1) deps/hackney/src/hackney_url.erl:248: :hackney_url.parse_netloc/2 (hackney 1.20.1) deps/hackney/src/hackney.erl:691: :hackney.proxy_from_url/5 (hackney 1.20.1) deps/hackney/src/hackney.erl:335:...
Since this library can automatically use ENV variables to set proxy, it would be cool if it could also set proxy basic auth, if it's present in the URL. We...