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

def run_model(connection_config, payload)

def run_model(connection_config, payload)
  response = send_request(
    url: connection_config[:url_host],
    http_method: connection_config[:http_method],
    payload: payload,
    headers: connection_config[:headers],
    config: connection_config[:config]
  )
  process_response(response)
rescue StandardError => e
  handle_exception(e, { context: "HTTP MODEL:RUN_MODEL:EXCEPTION", type: "error" })
end