Curl To Ruby Save

:arrow_down: Convert a curl command into ruby's net/http

Project README

curl-to-ruby

curl-to-ruby is a tool to instantly convert curl commands to ruby code using net/http in the browser. It does not guarantee high-fidelity conversions, but it's good enough for most API docs that have curl samples.

Try it

Check it out! It works inside your browser.

FAQ

Does any curl command work?

Any curl command should work, but only certain flags are understood and converted into ruby code. The rest of the flags will be ignored.

Which kinds of curl commands are understood?

Mostly simple HTTP commands (headers, basic auth, body, etc).

Will you consider supporting this-or-that flag?

curl has like a bajillion options, so don't expect all of them to be implemented; just the most common/important ones to stub out code from API samples and docs, etc. But feel free to open an issue or submit a pull request!

Credits

Updated to ruby by John Hawthorn (jhawthorn)

Based on curl-to-Go by Matt Holt (mholt6).

Open Source Agenda is not affiliated with "Curl To Ruby" Project. README Source: jhawthorn/curl-to-ruby
Stars
237
Open Issues
24
Last Commit
1 year ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating