http.rb 529 Bytes
Newer Older
1
require "http/parser"
2

3 4 5 6 7 8 9 10 11 12 13 14 15
require "http/errors"
require "http/timeout/null"
require "http/timeout/per_operation"
require "http/timeout/global"
require "http/chainable"
require "http/client"
require "http/connection"
require "http/options"
require "http/request"
require "http/request/writer"
require "http/response"
require "http/response/body"
require "http/response/parser"
16 17 18 19 20 21 22

# HTTP should be easy
module HTTP
  extend Chainable

  class << self
    # HTTP[:accept => 'text/html'].get(...)
23
    alias_method :[], :headers
24 25
  end
end