Class: Net::HTTP

Inherits:
Object
  • Object
show all
Defined in:
lib/net/http.rb

Overview

TODO Implement HTTP with jQuery for use in Glimmer DSL for Opal TODO Re-Implement in Fetch in the future Note: ignore Protocol superclass for now

Class Method Summary collapse

Class Method Details

.post_form(uri, params) ⇒ Object



32
33
34
35
36
37
38
# File 'lib/net/http.rb', line 32

def post_form(uri, params)
  response_body = nil
  result = ::HTTP.post(uri, payload: params) do |response|
     response_body = response.body
  end
  response_body
end