added check_keep_alive() method to request class