def make_http_request(
        self,
        url,
        method,
        auth=None,
        headers=None,
        parameters=None,
        body=None,
        proxies=None,
    ):
        """To make rest api calls to  rest api.

        Args:
            url (String): URL of the rest call.
            method (String): HTTP method of rest call. Eg. "GET", etc.
            auth(Tuple,optional):auth tuple which contains username and password.Defaults to None
            headers (Dict, optional): headers. Defaults to None.
            parameters (Dict, optional): parameters. Defaults to None.
            body (Dict , optional): body. Defaults to None.
            proxies (Dict, optional): proxies. Defaults to None.

        Returns:
            response : response of the rest call.
        """
        __method_name = inspect.currentframe().f_code.co_name
        error_log = "{}(method={}) : {}: {}"
        response_error_log = "{}(method={}) : {}: url: {}, Status Code : {}: {}"
        try:
            applogger.debug(
                "{}(method={}) : {}: Calling url: {}".format(
                    consts.LOGS_STARTS_WITH,
                    __method_name,
                    self.azure_function_name,
                    url,
                )
            )
            if method == "POST":
                response = self.session.post(
                    url=url,
                    headers=headers,
                    params=parameters,
                    data=body,
                    auth=auth,
                    proxies=proxies,
                    timeout=consts.API_TIMEOUT,
                )
            else:
                response = self.session.get(
                    url=url,
                    headers=headers,
                    params=parameters,
                    data=body,
                    auth=auth,
                    proxies=proxies,
                    timeout=consts.API_TIMEOUT,
                )

            if response.status_code >= 200 and response.status_code <= 299:
                applogger.debug(
                    "{}(method={}) : {}: Got the response from url : {} : Status code : {}".format(
                        consts.LOGS_STARTS_WITH,
                        __method_name,
                        self.azure_function_name,
                        url,
                        response.status_code,
                    )
                )
            elif response.status_code >= 400 and response.status_code <= 499:
                log_message = "error occurred while calling url."
                applogger.error(
                    response_error_log.format(
                        consts.LOGS_STARTS_WITH,
                        __method_name,
                        self.azure_function_name,
                        url,
                        response.status_code,
                        log_message,
                    )
                )
            elif response.status_code == 500:
                log_message = "Internal Server Error"
                applogger.error(
                    response_error_log.format(
                        consts.LOGS_STARTS_WITH,
                        __method_name,
                        self.azure_function_name,
                        url,
                        response.status_code,
                        log_message,
                    )
                )
            else:
                log_message = "Unexpected error occurred."
                applogger.error(
                    response_error_log.format(
                        consts.LOGS_STARTS_WITH,
                        __method_name,
                        self.azure_function_name,
                        url,
                        response.status_code,
                        log_message,
                    )
                )
            return response
        except requests.ConnectionError as error:
            applogger.error(
                error_log.format(
                    consts.LOGS_STARTS_WITH,
                    __method_name,
                    self.azure_function_name,
                    error,
                )
            )
            raise CofenseIntelligenceException()
        except requests.HTTPError as error:
            applogger.error(
                error_log.format(
                    consts.LOGS_STARTS_WITH,
                    __method_name,
                    self.azure_function_name,
                    error,
                )
            )
            raise CofenseIntelligenceException()
        except requests.RequestException as error:
            applogger.error(
                error_log.format(
                    consts.LOGS_STARTS_WITH,
                    __method_name,
                    self.azure_function_name,
                    error,
                )
            )
            raise CofenseIntelligenceException()
        except Exception as error:
            applogger.error(
                error_log.format(
                    consts.LOGS_STARTS_WITH,
                    __method_name,
                    self.azure_function_name,
                    error,
                )
            )
            raise CofenseIntelligenceException()
To make rest api calls to  rest api.

        Args:
            url (String): URL of the rest call.
            method (String): HTTP method of rest call. Eg. "GET", etc.
            auth(Tuple,optional):auth tuple which contains username and password.Defaults to None
            headers (Dict, optional): headers. Defaults to None.
            parameters (Dict, optional): parameters. Defaults to None.
            body (Dict , optional): body. Defaults to None.
            proxies (Dict, optional): proxies. Defaults to None.

        Returns:
            response : response of the rest call.
        
Solutions/CofenseIntelligence/Data Connectors/CofenseIntelligenceDataConnector/SharedCode/utils.py