class Protocol::HTTP::Methods

def self.valid?(name)

@returns [Boolean] True if the name is a valid HTTP method.

Note that this method only knows about the methods defined in this module, however there are many other methods defined in different specifications.

Check if the given name is a valid HTTP method, according to this module.
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