Sha256: e36a85fadd7a85698aa3aa7d974173ec437cf1f577938ecb08a9a1fa9fd47f6d

Contents?: true

Size: 518 Bytes

Versions: 64

Compression:

Stored size: 518 Bytes

Contents

module Ethon
  class Easy
    module Http

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

        # Setup easy to make a OPTIONS request.
        #
        # @example Setup.
        #   options.setup(easy)
        #
        # @param [ Easy ] easy The easy to setup.
        def setup(easy)
          super
          easy.customrequest = "OPTIONS"
        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/options.rb
ethon-0.7.4 lib/ethon/easy/http/options.rb
ethon-0.7.3 lib/ethon/easy/http/options.rb
ethon-0.7.2 lib/ethon/easy/http/options.rb
ethon-0.7.1 lib/ethon/easy/http/options.rb
ethon-0.7.0 lib/ethon/easy/http/options.rb
ethon-0.6.3 lib/ethon/easy/http/options.rb
ethon-0.6.2 lib/ethon/easy/http/options.rb
ethon-0.6.1 lib/ethon/easy/http/options.rb
ethon-0.6.0 lib/ethon/easy/http/options.rb
ethon-0.5.12 lib/ethon/easy/http/options.rb
ethon-0.5.11 lib/ethon/easy/http/options.rb
ethon-0.5.10 lib/ethon/easy/http/options.rb
ethon-0.5.9 lib/ethon/easy/http/options.rb
ethon-0.5.8 lib/ethon/easy/http/options.rb
ethon-0.5.7 lib/ethon/easy/http/options.rb
ethon-0.5.6 lib/ethon/easy/http/options.rb
ethon-0.5.4 lib/ethon/easy/http/options.rb
ethon-0.5.3 lib/ethon/easy/http/options.rb
ethon-0.5.2 lib/ethon/easy/http/options.rb