Made it slightly clearer what this pattern does: depending on which URI you hit, you make 1 or 4 requests: https://gist.github.com/3172911
-
-
-
Replying to @steveklabnik
@steveklabnik@mboeh res = Net::HTTP.start(uri.hostname, uri.port) do |http| http.get uri.request_uri, 'Accept' => 'application/json' end1 reply 0 retweets 0 likes -
Replying to @drbrain
@drbrain@steveklabnik@mboeh Http.accept(:json).get(url)#justsayin https://github.com/tarcieri/http3 replies 0 retweets 0 likes -
Replying to @bascule3 replies 0 retweets 1 like
-
Replying to @steveklabnik
@steveklabnik dude, really? This is a ridiculous statement.1 reply 0 retweets 0 likes -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.