Class: HtmlConnectionHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/html_connection/html_connection_helper.rb

Class Method Summary collapse

Class Method Details

.build_request(uri, params, headers) ⇒ Object



5
6
7
8
9
# File 'lib/html_connection/html_connection_helper.rb', line 5

def self.build_request(uri, params, headers)
  request = Net::HTTP::Get.new(uri.path)
  request.set_form_data(params)
  return Net::HTTP::Get.new(uri.path + '?' + request.body, headers)
end