Sha256: 1c7ebe307cdf100b19e72018e4f9adf0435ef84ed55777c380180cc57242422d

Contents?: true

Size: 522 Bytes

Versions: 64

Compression:

Stored size: 522 Bytes

Contents

module Ethon
  class Easy
    module Http

      # This class knows everything about making GET requests.
      class Get
        include Ethon::Easy::Http::Actionable
        include Ethon::Easy::Http::Postable

        # Setup easy to make a GET request.
        #
        # @example Setup.
        #   get.set_params(easy)
        #
        # @param [ Easy ] easy The easy to setup.
        def setup(easy)
          super
          easy.customrequest = "GET" unless form.empty?
        end
      end
    end
  end
end

Version data entries

64 entries across 63 versions & 8 rubygems

Version Path
ethon-0.8.0 lib/ethon/easy/http/get.rb
ethon-0.7.4 lib/ethon/easy/http/get.rb
ethon-0.7.3 lib/ethon/easy/http/get.rb
ethon-0.7.2 lib/ethon/easy/http/get.rb
ethon-0.7.1 lib/ethon/easy/http/get.rb
ethon-0.7.0 lib/ethon/easy/http/get.rb
ethon-0.6.3 lib/ethon/easy/http/get.rb
ethon-0.6.2 lib/ethon/easy/http/get.rb
ethon-0.6.1 lib/ethon/easy/http/get.rb
ethon-0.6.0 lib/ethon/easy/http/get.rb
ethon-0.5.12 lib/ethon/easy/http/get.rb
ethon-0.5.11 lib/ethon/easy/http/get.rb
ethon-0.5.10 lib/ethon/easy/http/get.rb
ethon-0.5.9 lib/ethon/easy/http/get.rb
ethon-0.5.8 lib/ethon/easy/http/get.rb
ethon-0.5.7 lib/ethon/easy/http/get.rb
ethon-0.5.6 lib/ethon/easy/http/get.rb
ethon-0.5.4 lib/ethon/easy/http/get.rb
ethon-0.5.3 lib/ethon/easy/http/get.rb
ethon-0.5.2 lib/ethon/easy/http/get.rb