<commit_before>require 'ethon/easies/http/action'
require 'ethon/easies/http/actions/get'
require 'ethon/easies/http/actions/head'
require 'ethon/easies/http/actions/post'
require 'ethon/easies/http/actions/put'

module Ethon
  module Easies
    module Http
      def http_request(url, action_name, options = {})
        Action.reset(self)
        Action.fabricate(action_name).new(url, options).setup(self)
      end
    end
  end
end<commit_msg>Document http.<commit_after>require 'ethon/easies/http/action'
require 'ethon/easies/http/actions/get'
require 'ethon/easies/http/actions/head'
require 'ethon/easies/http/actions/post'
require 'ethon/easies/http/actions/put'

module Ethon
  module Easies

    # This module contains logic about making valid http requests.
    module Http

      # 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.
      def http_request(url, action_name, options = {})
        Action.reset(self)
        Action.fabricate(action_name).new(url, options).setup(self)
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.10965250965250965, 'fraction_numerical': 0.0, 'mean_word_length': 3.1405750798722045, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2609634', 'n_tokens_mistral': 423, 'n_tokens_neox': 411, 'n_words': 99}