def connectable?
      ssl_context = OpenSSL::SSL::SSLContext.new
      ssl_context.verify_mode = OpenSSL::SSL::VERIFY_NONE

      @http.head(URL_TO_CHECK, ssl_context: ssl_context).status.success?
    rescue StandardError
      false
    end
def connectable?
      ssl_context = OpenSSL::SSL::SSLContext.new
      ssl_context.verify_mode = OpenSSL::SSL::VERIFY_NONE

      @http.head(URL_TO_CHECK, ssl_context: ssl_context).status.success?
    rescue StandardError
      false
    end
Initialize new ProxyValidator instance

 @param proxy_addr [String] proxy address or IP
 @param proxy_port [String, Integer] proxy port

 @return [ProxyValidator]

 Checks if proxy is connectable (can be used to connect
 resources via proxy server).

 @return [Boolean]
   true if connection to the server using proxy established, otherwise false