Is there a way to close a response? I can use res.end() but it doesn\'t actually close the socket.
res.end()
What I want to achieve: I am writing a Java program w
Solved by setting a HTTP header to close the connection instead of default keep-alive strategy.
res.set("Connection", "close");