diff --git a/doc/api/http.md b/doc/api/http.md index 8f2c531713b4f5..ea229ec0b17681 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -1277,6 +1277,13 @@ const server = http.createServer((req, res) => { }); ``` +If [`response.writeHead()`][] method is called and this method has not been +called, it will directly write the supplied header values onto the network +channel without caching internally, and the [`response.getHeader()`][] on the +header will not yield the expected result. If progressive population of headers +is desired with potential future retrieval and modification, use +[`response.setHeader()`][] instead of [`response.writeHead()`][]. + ### response.setTimeout(msecs[, callback])