class Multiwoven::Integrations::Source::HttpModel::Client

def run_model(connection_config, payload)

def run_model(connection_config, payload)
  connection_config = connection_config.with_indifferent_access
  url_host = connection_config[:url_host]
  headers = connection_config[:headers]
  config = connection_config[:config]
  config[:timeout] ||= 30
  response = send_request(url_host, HTTP_POST, payload, headers, config)
  process_response(response)
rescue StandardError => e
  handle_exception(e, context: "HTTP MODEL:RUN_MODEL:EXCEPTION", type: "error")
end