Sha256: 7604bcc67c326d6b85d243ea51c0c3cb4432536518d60fa1448fbc2a015c9486

Contents?: true

Size: 943 Bytes

Versions: 3

Compression:

Stored size: 943 Bytes

Contents

require "net/https"
require "forwardable"
require "json"
require "zlib"

require "nokogiri"
require "active_support/core_ext/object/to_query"

require "aitch/utils"
require "aitch/uri"
require "aitch/dsl"
require "aitch/namespace"
require "aitch/location"
require "aitch/configuration"
require "aitch/errors"
require "aitch/request"
require "aitch/redirect"
require "aitch/response/errors"
require "aitch/response"
require "aitch/response/body"
require "aitch/xml_parser"
require "aitch/html_parser"
require "aitch/version"

module Aitch
  class << self
    extend Forwardable

    def_delegators :namespace,
      :configuration, :config,
      :get, :get!,
      :post, :post!,
      :put, :put!,
      :patch, :patch!,
      :options, :options!,
      :trace, :trace!,
      :head, :head!,
      :delete, :delete!,
      :execute, :execute!,
      :configure
  end

  private
  def self.namespace
    @namespace ||= Namespace.new
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aitch-0.4.1 lib/aitch.rb
aitch-0.4.0 lib/aitch.rb
aitch-0.3.0 lib/aitch.rb