class Multiwoven::Integrations::Source::HttpModel::Client
def check_connection(connection_config)
def check_connection(connection_config) connection_config = prepare_config(connection_config) response = send_request( url: connection_config[:url_host], http_method: connection_config[:http_method], payload: JSON.parse(connection_config[:request_format]), headers: connection_config[:headers], config: connection_config[:config] ) success?(response) ? success_status : failure_status(nil) rescue StandardError => e handle_exception(e, { context: "HTTP MODEL:CHECK_CONNECTION:EXCEPTION", type: "error" }) failure_status(e) end