We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2afd7c commit 3c1bd05Copy full SHA for 3c1bd05
doc/api/http.md
@@ -1091,6 +1091,10 @@ it will switch to implicit header mode and flush the implicit headers.
1091
This sends a chunk of the response body. This method may
1092
be called multiple times to provide successive parts of the body.
1093
1094
+Note that in the `http` module, the response body is omitted when the
1095
+request is a HEAD request. Similarly, the `204` and `304` responses
1096
+_must not_ include a message body.
1097
+
1098
`chunk` can be a string or a buffer. If `chunk` is a string,
1099
the second parameter specifies how to encode it into a byte stream.
1100
By default the `encoding` is `'utf8'`. `callback` will be called when this chunk
0 commit comments