Home > Article > Web Front-end > Instructions for using the http.response.end method in node.js_node.js
Method description:
End response, telling the client that all messages have been sent. This function must be called once when all content to be returned has been sent.
If this function is not called, the client will be in a waiting state forever.
Grammar:
Receive parameters:
data The characters to be output after end() is executed. If the value of data is specified, it means that after response.end() is executed, a response.write(data, encoding);
encoding The character encoding corresponding to data
Example:
Hello World
');