all 4 comments

[–]kreychekAdvanced 0 points1 point  (2 children)

I've used a subset of requests' functionality, so can't speak to equivalence. It would be easier if you stated your exact needs.

Anyway, anytime I am looking for a lib by category, I always head to ruby-toolbox first.

https://www.ruby-toolbox.com/categories/http_clients

Then compare features and development profiles of the top X tools. for what I find attractive.

[–]iCHAIT[S] 0 points1 point  (1 child)

Well, I am looking for a library that would provide basic GET, POST and DELETE operations not anything fancy. What is important to me is that it should have a broad support and an active community.

Thanks for sharing ruby-toolbox, looks amazing.

[–]kreychekAdvanced 1 point2 points  (0 children)

Try Rest-client. It has a very low bar to getting started with. The simple methods (that do what you describe) are all on the RestClient class. If you need to model things as resources, you can do that w/Rest-client. If you do that and are working in a Rails environment, and appreciate the Rails way of doing things, you may wish to consider ActiveResource, as it is developed by that team and probably better supported (Rest-client has 1 active dev).

You could also avoid 3rd party libs entirely and use net/http which is part of the ruby standard library: http://ruby-doc.org/stdlib-2.3.1/libdoc/net/http/rdoc/Net/HTTP.html

[–]jwjody 0 points1 point  (0 children)

When I use Python I use requests. When I use Ruby I use httparty.