edgurgel / httpoison

Yet Another HTTP client for Elixir powered by hackney
https://hex.pm/packages/httpoison
MIT License
2.23k stars 339 forks source link

Add `HTTPoison.Request.to_curl/1` to get an equivalent curl command #459

Closed dariodf closed 2 years ago

dariodf commented 2 years ago

Generates an equivalent curl command for a %HTTPoison.Request{}.

Cases not covered by this PR (will throw a "not supported" result):

Partially solves https://github.com/edgurgel/httpoison/issues/348

Zarathustra2 commented 2 years ago

Would love to get this in

edgurgel commented 2 years ago

Thanks, @dariodf ! :tada: Will get a release out soon

dariodf commented 2 years ago

Thanks, @dariodf ! tada Will get a release out soon

Hi! Will a release with this change come out soon? Thanks in advance!

edgurgel commented 2 years ago

@dariodf oh yes! Sorry for that! Will release a new version later today. Thanks again for the PR!