We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74d94b0 commit ed316aeCopy full SHA for ed316ae
1 file changed
doc/api/http.markdown
@@ -259,6 +259,11 @@ be called before `response.end()` is called.
259
If you call `response.write()` or `response.end()` before calling this, the
260
implicit/mutable headers will be calculated and call this function for you.
261
262
+Note: that Content-Length is given in bytes not characters. The above example
263
+works because the string `'hello world'` contains only single byte characters.
264
+If the body contains higher coded characters then `Buffer.byteLength()`
265
+should be used to determine the number of bytes in a given encoding.
266
+
267
### response.statusCode
268
269
When using implicit headers (not calling `response.writeHead()` explicitly), this property
0 commit comments