Solved -Why can’t we do multiple response.send in Express.js?
79👍 ✅ Perhaps you are looking for a solution using response.write. response.write(“foo”); response.write(“bar”); //… response.end() res.send implicitly incorporates res.write followed by res.end. While calling res.send multiple times will work for the first call, subsequent calls will not have any effect. This is because the first res.send call concludes the response and prevents further additions to … Read more