We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1e1832 commit e2d66abCopy full SHA for e2d66ab
doc/api/http.md
@@ -1161,6 +1161,10 @@ it will switch to implicit header mode and flush the implicit headers.
1161
This sends a chunk of the response body. This method may
1162
be called multiple times to provide successive parts of the body.
1163
1164
+Note that in the `http` module, the response body is omitted when the
1165
+request is a HEAD request. Similarly, the `204` and `304` responses
1166
+_must not_ include a message body.
1167
+
1168
`chunk` can be a string or a buffer. If `chunk` is a string,
1169
the second parameter specifies how to encode it into a byte stream.
1170
By default the `encoding` is `'utf8'`. `callback` will be called when this chunk
0 commit comments