Module Ethon::Easy::Http
In: lib/ethon/easy/http.rb
lib/ethon/easy/http/options.rb
lib/ethon/easy/http/patch.rb
lib/ethon/easy/http/put.rb
lib/ethon/easy/http/get.rb
lib/ethon/easy/http/delete.rb
lib/ethon/easy/http/custom.rb
lib/ethon/easy/http/post.rb
lib/ethon/easy/http/putable.rb
lib/ethon/easy/http/postable.rb
lib/ethon/easy/http/actionable.rb
lib/ethon/easy/http/head.rb

This module contains logic about making valid HTTP requests.

Methods

Classes and Modules

Module Ethon::Easy::Http::Actionable
Module Ethon::Easy::Http::Postable
Module Ethon::Easy::Http::Putable
Class Ethon::Easy::Http::Custom
Class Ethon::Easy::Http::Delete
Class Ethon::Easy::Http::Get
Class Ethon::Easy::Http::Head
Class Ethon::Easy::Http::Options
Class Ethon::Easy::Http::Patch
Class Ethon::Easy::Http::Post
Class Ethon::Easy::Http::Put

Public Instance methods

Set specified options in order to make a HTTP request. Look at {Ethon::Easy::Options Options} to see what you can provide in the options hash.

@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 for everything else.

@option options :headers [ Hash ] Request headers.

@return [ void ]

@see Ethon::Easy::Options

[Validate]