Answers for "res.write in node js"

1

node js response header

response.setHeader("Content-Type", "text/html");
Posted by: Guest on July-26-2020
0

res.write in node js

response.write("Heyy geeksforgeeks ", 'utf8', () => {
      console.log("Writing string Data...");
 });
  
// Prints Output on the browser in response
  response.end(' ok');
Posted by: Guest on October-02-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language