Module containing logic about shortcuts to http methods. Like
Typhoeus.get("www.example.com")
Make a delete request.
@example Make delete request.
Typhoeus.delete("www.example.com")
@param (see Typhoeus::Request#initialize)
@option (see Typhoeus::Request#initialize)
@return (see Typhoeus::Request#initialize)
@note (see Typhoeus::Request#initialize)
# File lib/typhoeus/request/actions.rb, line 72 def delete(base_url, options = {}) Request.new(base_url, options.merge(:method => :delete)).run end
Make a get request.
@example Make get request.
Typhoeus.get("www.example.com")
@param (see Typhoeus::Request#initialize)
@option (see Typhoeus::Request#initialize)
@return (see Typhoeus::Request#initialize)
@note (see Typhoeus::Request#initialize)
# File lib/typhoeus/request/actions.rb, line 21 def get(base_url, options = {}) Request.new(base_url, options.merge(:method => :get)).run end
Make a head request.
@example Make head request.
Typhoeus.head("www.example.com")
@param (see Typhoeus::Request#initialize)
@option (see Typhoeus::Request#initialize)
@return (see Typhoeus::Request#initialize)
@note (see Typhoeus::Request#initialize)
# File lib/typhoeus/request/actions.rb, line 88 def head(base_url, options = {}) Request.new(base_url, options.merge(:method => :head)).run end
Make a options request.
@example Make options request.
Typhoeus.options("www.example.com")
@param (see Typhoeus::Request#initialize)
@option (see Typhoeus::Request#initialize)
@return (see Typhoeus::Request#initialize)
@note (see Typhoeus::Request#initialize)
# File lib/typhoeus/request/actions.rb, line 120 def options(base_url, options = {}) Request.new(base_url, options.merge(:method => :options)).run end
Make a patch request.
@example Make patch request.
Typhoeus.patch("www.example.com")
@param (see Typhoeus::Request#initialize)
@option (see Typhoeus::Request#initialize)
@return (see Typhoeus::Request#initialize)
@note (see Typhoeus::Request#initialize)
# File lib/typhoeus/request/actions.rb, line 104 def patch(base_url, options = {}) Request.new(base_url, options.merge(:method => :patch)).run end
Make a post request.
@example Make post request.
Typhoeus.post("www.example.com")
@param (see Typhoeus::Request#initialize)
@option (see Typhoeus::Request#initialize)
@return (see Typhoeus::Request#initialize)
@note (see Typhoeus::Request#initialize)
# File lib/typhoeus/request/actions.rb, line 37 def post(base_url, options = {}) Request.new(base_url, options.merge(:method => :post)).run end
Make a put request.
@example Make put request.
Typhoeus.put("www.example.com")
@param (see Typhoeus::Request#initialize)
@option options :params [ Hash ] Params hash which
is attached to the base_url.
@option options :body [ Hash ] Body hash which
becomes a PUT request body.
@return (see Typhoeus::Request#initialize)
@note (see Typhoeus::Request#initialize)
# File lib/typhoeus/request/actions.rb, line 56 def put(base_url, options = {}) Request.new(base_url, options.merge(:method => :put)).run end
Generated with the Darkfish Rdoc Generator 2.