Module: Facter::Util::Resolvers::Http
- Defined in:
- lib/facter/util/resolvers/http.rb
Constant Summary collapse
- CONNECTION_TIMEOUT =
0.6
- SESSION_TIMEOUT =
5
Class Method Summary collapse
-
.get_request(url, headers = {}, timeouts = {}, proxy = true) ⇒ Object
Makes a GET HTTP request and returns its response.
-
.put_request(url, headers = {}, timeouts = {}, proxy = true) ⇒ Object
Makes a PUT HTTP request and returns its response.
Class Method Details
.get_request(url, headers = {}, timeouts = {}, proxy = true) ⇒ Object
Makes a GET HTTP request and returns its response.
26 27 28 |
# File 'lib/facter/util/resolvers/http.rb', line 26 def get_request(url, headers = {}, timeouts = {}, proxy = true) make_request(url, headers, timeouts, 'GET', proxy) end |
.put_request(url, headers = {}, timeouts = {}, proxy = true) ⇒ Object
Makes a PUT HTTP request and returns its response
33 34 35 |
# File 'lib/facter/util/resolvers/http.rb', line 33 def put_request(url, headers = {}, timeouts = {}, proxy = true) make_request(url, headers, timeouts, 'PUT', proxy) end |