| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f13a302 commit 0c2b5a0
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1002,11 +1002,11 @@ added: v0.1.29 | |||
| 1002 | 1002 | * `callback` {Function} | |
| 1003 | 1003 | * Returns: {boolean} | |
| 1004 | 1004 | ||
| 1005 | - Sends a chunk of the body. By calling this method | ||
| 1006 | - many times, a request body can be sent to a | ||
| 1007 | - server. In that case, it is suggested to use the | ||
| 1008 | - `['Transfer-Encoding', 'chunked']` header line when | ||
| 1009 | - creating the request. | ||
| 1005 | + Sends a chunk of the body. This method can be called multiple times. If no | ||
| 1006 | + `Content-Length` is set, data will automatically be encoded in HTTP Chunked | ||
| 1007 | + transfer encoding, so that server knows when the data ends. The | ||
| 1008 | + `Transfer-Encoding: chunked` header is added. Calling [`request.end()`][] | ||
| 1009 | + is necessary to finish sending the request. | ||
| 1010 | 1010 | ||
| 1011 | 1011 | The `encoding` argument is optional and only applies when `chunk` is a string. | |
| 1012 | 1012 | Defaults to `'utf8'`. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments