File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1027,11 +1027,11 @@ added: v0.1.29
1027
1027
* ` callback ` {Function}
1028
1028
* Returns: {boolean}
1029
1029
1030
- Sends a chunk of the body. By calling this method
1031
- many times, a request body can be sent to a
1032
- server. In that case, it is suggested to use the
1033
- ` [' Transfer-Encoding', ' chunked'] ` header line when
1034
- creating the request.
1030
+ Sends a chunk of the body. This method can be called multiple times. If no
1031
+ ` Content-Length ` is set, data will automatically be encoded in HTTP Chunked
1032
+ transfer encoding, so that server knows when the data ends. The
1033
+ ` Transfer-Encoding: chunked ` header is added. Calling [ ` request.end() ` ] [ ]
1034
+ is necessary to finish sending the request.
1035
1035
1036
1036
The ` encoding ` argument is optional and only applies when ` chunk ` is a string.
1037
1037
Defaults to ` 'utf8' ` .
You can’t perform that action at this time.
0 commit comments