Class: ProconBypassMan::HttpClient::HttpRequest::Get

Inherits:
Object
  • Object
show all
Defined in:
lib/procon_bypass_man/support/http_client.rb

Class Method Summary collapse

Class Method Details

.request!(uri:) ⇒ Object



5
6
7
8
9
# File 'lib/procon_bypass_man/support/http_client.rb', line 5

def self.request!(uri: )
  http = Net::HTTP.new(uri.host, uri.port)
  http.use_ssl = uri.scheme === "https"
  http.get(uri.path, { "Content-Type" => "application/json" })
end