lib/manticore/client.rb
# Perform an HTTP request, passing the method as a parameter
# @param method [String, Symbol] Method to call (get put head post options patch)
# @macro http_method_shared
# @macro http_request_exceptions
Perform an HTTP request, passing the method as a parameter
Perform an HTTP request passing the method as a parameter
def http(method, url, options = {}, &block)
      case method.to_s.downcase
      when *%w(get put head post options patch)
        send method, url, options, &block
      else
        raise "Invalid method: #{method}"
      end
    end
def http ( method , url , options = { } , & block ) case method . to_s . downcase when * %w( get put head post options patch ) send method , url , options , & block else raise "Invalid method: #{method}" end end
Perform an HTTP request, passing the method as a parameter
Perform an HTTP request passing the method as a parameter
method
Method to call (get put head post options patch)
Method to call ( get put head post options patch )
url
<not_specific>
options
<not_specific>
block
<not_specific>
macro
None
macro
None