perform_request

in lib/twurl/request_controller.rb [17:30]


    def perform_request
      client.perform_request_from_options(options) { |response|
        response.read_body { |body|
          CLI.print options.json_format ? JsonFormatter.format(body) : body
        }
      }
    rescue URI::InvalidURIError
      raise Exception, INVALID_URI_MESSAGE
    rescue Net::ReadTimeout
      raise Exception, READ_TIMEOUT_MESSAGE
    rescue Net::OpenTimeout
      raise Exception, OPEN_TIMEOUT_MESSAGE
    end