def METHOD_NAME(self, method, params, url_params):
    response = None
    if self.endpoint is not None and method in KITE_REQUEST_MAPPING:
        http_verb, path = KITE_REQUEST_MAPPING[method]
        encoded_url_params = {
            key: quote(value) if isinstance(value, TEXT_TYPES) else value
            for (key, value) in url_params.items()}
        path = path.format(**encoded_url_params)
        try:
            success, response = self.perform_http_request(
                http_verb, path, params=params)
        except (ConnectionRefusedError, ConnectionError):
            return response
    return response