Ruby HTTP Client Libraries (Responses)
 Share
The version of the browser you are using is no longer supported. Please upgrade to a supported browser.Dismiss

 
View only
 
 
ABCDEFGHIJKLMNOPQRSTUVWXYZAAAB
1
Timestamp
What is your go-to Ruby HTTP client library?
Why?
If you chose Faraday: which back-end do you usually use with it?
2
9/4/2015 10:28:53FaradayNice API, middleware. Typhoeus
3
9/4/2015 10:29:26Rest-Client
4
9/4/2015 10:30:15Typhoeus
5
9/4/2015 10:30:19FaradayPlugability
6
9/4/2015 10:30:23HTTParty
7
9/4/2015 10:30:48HTTPartyIt's simplicity
8
9/4/2015 10:30:53Built-in Net::HTTP
9
9/4/2015 10:31:02HTTPartyThe syntax is good enough to make it easy.
10
9/4/2015 10:33:21HTTParty
11
9/4/2015 10:33:59CurbSeems faster than the other ones
12
9/4/2015 10:35:18HTTPartyWhen I HTTParty, I must party hard!
13
9/4/2015 10:36:19HTTPartyIt's dead simple.
14
9/4/2015 10:36:30HTTPartyIt's pretty simple
15
9/4/2015 10:38:12Faradaymiddlewares!Net::HTTP or curb
16
9/4/2015 10:38:22ExconNice api Net::HTTP
17
9/4/2015 10:38:47HTTPartySimple, easy to use, no exceptions on common cases like 500s
18
9/4/2015 10:38:53HTTPartyTyphoeus
19
9/4/2015 10:41:37Faraday
20
9/4/2015 10:41:39Faradayone api to rule 'em allExcon, Typhoeus
21
9/4/2015 10:42:03none of them
The python library Requests is so much better than every ruby library that I cannot support any of them. Every one I've tried has made my life miserable in some way.

(I currently use HTTPI, which is neither an option in the poll nor particularly worth recommending, but it does at least function)
22
9/4/2015 10:43:10HTTParty
23
9/4/2015 10:44:15HTTPClient
Thread-safe, uses keepalive, fast, no C code (cross-platform; I use a lot of JRuby). See https://bibwild.wordpress.com/2012/04/30/ruby-http-performance-shootout-redux/
24
9/4/2015 10:46:58Typhoeus
25
9/4/2015 10:47:32HTTP.rbNice API. Celluloid support. Clean code.
26
9/4/2015 10:49:13FaradayTyphoeus
27
9/4/2015 10:49:37HTTP.rbIt's simple
28
9/4/2015 10:49:46HTTPClientSupports pretty much everything you'll ever need, overall very stable.
29
9/4/2015 10:49:56Faraday
I've used most of those. I liked HTTParty for a long time for how easy it was to bake it into a class. I prefer Faraday now, and end up writing it into things in a very similar way to how I did with HTTParty. Faraday has ridiculously good middleware support, and is very configurable
default (Net::HTTP)
30
9/4/2015 10:50:11Built-in Net::HTTP
31
9/4/2015 10:50:51Typhoeus
32
9/4/2015 10:51:31FaradayBecause I can switch the backend easily if my needs change.Net::HTTP
33
9/4/2015 10:52:27HTTP.rbIt's simple, fast enough, and I like the API.
34
9/4/2015 10:52:52Rest-ClientEase of use and not being familiar with the other choices.
35
9/4/2015 10:52:52Built-in Net::HTTPOthers create all sorts of dependency headaches, especially faraday
36
9/4/2015 10:53:21Faraday
37
9/4/2015 10:55:03HTTP.rbsimple
38
9/4/2015 10:57:19HTTPartyBecause when you party you have to httparty hard.
39
9/4/2015 10:57:38Rest-ClientMinimal code for the kinds of things I'm doing most often.
40
9/4/2015 10:59:13HTTParty
41
9/4/2015 10:59:32HTTParty
42
9/4/2015 10:59:35Built-in Net::HTTPHarder to use but stable as hell. Goes great with my fixie and go backend behind my ruby backend. :P -@ngauthier(╯°□°)╯︵ ┻━┻)
43
9/4/2015 10:59:55Faraday
44
9/4/2015 11:02:07FaradayDid a little research and faraday seemed to be the easiest to use and offered the features I needed. Net::HTTP
45
9/4/2015 11:02:15HTTParty
46
9/4/2015 11:03:10HTTPClientSupports ENV['http_proxy'] and especially ENV['no_proxy'] out of the box, supports http streaming.httpclient
47
9/4/2015 11:03:56Rest-Client
48
9/4/2015 11:06:56Manticore
Performance, plus relies on Apache's Java HTTP client which has been in use long enough for the bugs to be shaken out.

JRuby only, tho.
49
9/4/2015 11:08:05Faraday
50
9/4/2015 11:09:17HTTParty
51
9/4/2015 11:12:20FaradayBecause i like how easy it is to add middleware Net::HTTP
52
9/4/2015 11:12:45Excon
Author works at my company so it's in a lot of projects so I'm most familiar with it and it's good enough not to need to try others.
53
9/4/2015 11:18:05Faraday
54
9/4/2015 11:18:43FaradayTyphoues
55
9/4/2015 11:19:25HTTParty
56
9/4/2015 11:19:47Built-in Net::HTTPThe fact that’s in the standard library. To be honest often I’ll reach for OpenURI first of all.
57
9/4/2015 11:19:57Typhoeus
58
9/4/2015 11:20:42Faraday
59
9/4/2015 11:20:53FaradayNet::HTTP
60
9/4/2015 11:21:50Faradaysupports multiple backends and concurrent requests + middlewaresNet::HTTP
61
9/4/2015 11:22:42Faraday
62
9/4/2015 11:25:23HTTP.rbGreat team!
63
9/4/2015 11:27:21FaradayThe simplicity and ability to mixin and control without monkey patching.
Mixture of Net::HTTP and Typhoeus
64
9/4/2015 11:27:31Typhoeus
65
9/4/2015 11:30:20FaradayThe underlying client can change, but my code doesn't need to (much).Net::HTTP
66
9/4/2015 11:31:55Rest-Client
67
9/4/2015 11:37:06HTTPClient
68
9/4/2015 11:38:25HTTParty
69
9/4/2015 11:39:15HTTParty
70
9/4/2015 11:52:04Built-in Net::HTTP
net/http supports most things, has pretty good performance and is available without dependencies. Getting used to the API doesn't really bother me.
71
9/4/2015 12:00:45HTTParty
72
9/4/2015 12:04:48Faraday
73
9/4/2015 12:07:20Faraday
Net::HTTP for most scenes
74
9/4/2015 12:08:57HTTPartyI wish I had an answer for this :(
75
9/4/2015 12:09:20UnirestVery simple. Easy to pass headers and parameters.
76
9/4/2015 12:12:10HurleyIt’s the successor to Faraday.Net::HTTP
77
9/4/2015 12:12:44FaradayGot fed up with HTTParty's install message.Net::HTTP
78
9/4/2015 12:28:20Faradaynet::http
79
9/4/2015 12:28:33HTTPIIt's very simple to use and you can change adapters.
On HTTPI, usually Net::HTTP
80
9/4/2015 12:28:35FaradayMiddleware is a killer feature.Typhoeus
81
9/4/2015 12:32:42Built-in Net::HTTP
82
9/4/2015 12:33:02Built-in Net::HTTP
83
9/4/2015 12:33:33GoLangGoLangem-http-request
84
9/4/2015 12:41:09Faradaymiddlewarenet::http
85
9/4/2015 12:47:12Typhoeus
86
9/4/2015 12:47:55Thread.new(){`curl`}real non-blocking os thread. simplicity
87
9/4/2015 12:49:16Rest-Client
88
9/4/2015 12:50:18HTTP.rbsimple interface, just does HTTP without any magic, but mainly I'm just sticking to one library for consistency
89
9/4/2015 12:52:33Built-in Net::HTTP
90
9/4/2015 12:56:27HTTParty
Ease of use. Doesn't take me too long to remember how to use it if I haven't used it for a while.

That said, if I'm doing something more spidery in nature, like retrieving pages, parsing them, and following links, I am quite fond of Typhoeus.
91
9/4/2015 13:01:59HTTParty
92
9/4/2015 13:05:54HTTPartyIt's easy and familiar.
93
9/4/2015 13:06:02Faraday
94
9/4/2015 13:09:26Built-in Net::HTTP
95
9/4/2015 13:11:55HTTPartyStupidly simple to use.
96
9/4/2015 13:12:38Rest-Client
97
9/4/2015 13:12:57Rest-Client
98
9/4/2015 13:14:16HTTParty
99
9/4/2015 13:14:49Built-in Net::HTTP
100
9/4/2015 13:16:02Built-in Net::HTTP
Loading...
 
 
 
Form Responses 1