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
-
-
@steveklabnik@mboeh res = Net::HTTP.start(uri.hostname, uri.port) do |http| http.get uri.request_uri, 'Accept' => 'application/json' end -
@drbrain@steveklabnik@mboeh Http.accept(:json).get(url)#justsayin https://github.com/tarcieri/http - Show replies
New conversation -
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.