twitter-status-bot/.gems/gems/http-0.6.2/lib/http.rb

25 lines
473 B
Ruby
Raw Normal View History

2014-09-03 08:49:59 +00:00
require 'http/parser'
require 'http/errors'
require 'http/chainable'
require 'http/client'
require 'http/options'
require 'http/request'
require 'http/request/writer'
require 'http/response'
require 'http/response/body'
require 'http/response/parser'
require 'http/backports'
# HTTP should be easy
module HTTP
extend Chainable
class << self
# HTTP[:accept => 'text/html'].get(...)
alias_method :[], :with_headers
end
end
Http = HTTP unless defined?(Http)