class Protocol::HTTP::Methods

All supported HTTP methods

Constants

CONNECT
DELETE
GET
OPTIONS
PATCH
POST
PUT
TRACE

Public Class Methods

each() { |name, const_get(name)| ... } click to toggle source
# File lib/protocol/http/methods.rb, line 46
def self.each
        constants.each do |name|
                yield name, const_get(name)
        end
end
valid?(name) click to toggle source
# File lib/protocol/http/methods.rb, line 39
def self.valid?(name)
        const_defined?(name)
rescue NameError
        # Ruby will raise an exception if the name is not valid for a constant.
        return false
end