Instructions for the http.response.removeHeader method in node.js

  • 2020-05-05 10:52:43
  • OfStack

method description:

Removes the header that is waiting to be sent implicitly.

syntax:


response.removeHeader(name)

receive parameters:

name                     response header type, note that this name is case insensitive.

example:


response.removeHeader("Content-Encoding");


Related articles: