4 ms·
That's "not too bad" if you're coming from Java. Thankfully most other Ruby libraries have significantly less verbose APIs than this.
by petercooper 16y ago
That's "not too bad" if you're coming from Java. Thankfully most other Ruby libraries have significantly less verbose APIs than this.
- aaronbrethorst 16y agoPersonally, I'm a big fan of open-uri for super-simple requests and HTTParty for anything more complex.
- carbon8 16y agoThere's a much simpler way to do POSTs with Net::HTTP: response = Net::HTTP.post_form(URI.parse("http://example.com"), {:param => "val"})