Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

merged 2 commits into from May 17, 2022


Copy link

@dariodf dariodf commented May 1, 2022

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

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

  • :multipart body
  • :hackney options

Partially solves #348

Copy link

Zarathustra2 commented May 16, 2022

Would love to get this in

Copy link

@edgurgel edgurgel left a comment

I think this is a great addition! Thanks and sorry for the super late feedback.
I've added a few comments!

lib/httpoison.ex Outdated Show resolved Hide resolved
lib/httpoison.ex Show resolved Hide resolved
@dariodf dariodf requested a review from edgurgel May 17, 2022
@edgurgel edgurgel merged commit 2fca7b8 into edgurgel:main May 17, 2022
5 checks passed
Copy link

edgurgel commented May 17, 2022

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

Copy link
Contributor Author

dariodf commented Aug 4, 2022

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

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

Copy link

edgurgel commented Aug 4, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

3 participants