Home >Web Front-end >JS Tutorial >Instructions for using the http.response.write method in node.js_node.js
Method description:
Send response content to the requesting client.
Before response.end(), response.write() can be executed multiple times.
Grammar:
Parameters:
chunk is a buffer or string representing the sent content
encoding If chunk is a string, you need to specify encoding to indicate its encoding method. The default is utf-8
Example:
Hello World
');