module Ethon::Easy::Http

This module contains logic about making valid http requests.

Public Instance Methods

http_request(url, action_name, options = {}) click to toggle source

Set specified options in order to make a http request.

@example Set options for http request.

easy.http_request("www.google.com", :get, {})

@param [ String ] url The url. @param [ String ] action_name The http action name. @param [ Hash ] options The options hash.

@option options :params [ Hash ] Params hash which

is attached to the url.

@option options :body [ Hash ] Body hash which

becomes the request body. It is a PUT body for
PUT requests and a POST from for everything else.
# File lib/ethon/easy/http.rb, line 30
def http_request(url, action_name, options = {})
  fabricate(action_name).new(url, options).setup(self)
end