Sha256: 8582ba40bce9fe0633ef65665d1ee5bc3dda49077b05b1be8103152ce293f8ad

Contents?: true

Size: 473 Bytes

Versions: 5

Compression:

Stored size: 473 Bytes

Contents

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)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
http-0.6.4 lib/http.rb
http-0.6.3 lib/http.rb
http-0.6.2 lib/http.rb
http-0.6.1 lib/http.rb
http-0.6.0 lib/http.rb