lib/synaccess_connect/net_booter/http/http_connection.rb
def get_request(path)
      resp = nil
      begin
        Timeout::timeout(5) do
          resp = do_http_request(path)
        end
      rescue => e
        raise NetBooter::Error.new("Error connecting to relay: #{e.message}")
      end
      resp
    end
def get_request(path)
      resp = nil
      begin
        Timeout::timeout(5) do
          resp = do_http_request(path)
        end
      rescue => e
        raise NetBooter::Error.new("Error connecting to relay: #{e.message}")
      end
      resp
    end
def get_request ( path ) resp = nil begin Timeout :: timeout ( 5 ) do resp = do_http_request ( path ) end rescue => e raise NetBooter :: Error . new ( "Error connecting to relay: #{e.message}" ) end resp end
Make an http request and return the result.
Make an http request and return the result .