module ReadIt::HTTP
Public Instance Methods
http()
click to toggle source
# File lib/read_it/http.rb, line 6 def http @http ||= Faraday::Connection.new 'http://www.reddit.com' do |faraday| faraday.request :url_encoded faraday.adapter ReadIt.adapter faraday.headers["User-Agent"] = "ReadIt v#{ReadIt::VERSION}" end end