diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-11-25 14:29:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-25 14:29:59 +0100 |
commit | 967cc2c014c7f6be67d249a87df871a08d56afff (patch) | |
tree | 35b71da6e88ec26130d3ef91730a8db5d3e48a30 /doc/classes/HTTPRequest.xml | |
parent | 5378a8f5b0d58b1622e737a39823ef5639e58405 (diff) | |
parent | ed19b4076e0ec9252202086e65ffcc42510b6cdd (diff) |
Merge pull request #33862 from Faless/net/http_request_chunk_size
Add download_chunk_size property to HTTPRequest.
Diffstat (limited to 'doc/classes/HTTPRequest.xml')
-rw-r--r-- | doc/classes/HTTPRequest.xml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/classes/HTTPRequest.xml b/doc/classes/HTTPRequest.xml index d0e8a5972f..98ba08e6a2 100644 --- a/doc/classes/HTTPRequest.xml +++ b/doc/classes/HTTPRequest.xml @@ -93,6 +93,10 @@ <member name="body_size_limit" type="int" setter="set_body_size_limit" getter="get_body_size_limit" default="-1"> Maximum allowed size for response bodies. </member> + <member name="download_chunk_size" type="int" setter="set_download_chunk_size" getter="get_download_chunk_size" default="4096"> + The size of the buffer used and maximum bytes to read per iteration. See [member HTTPClient.read_chunk_size]. + Set this to a higher value (e.g. 65536 for 64 KiB) when downloading large files to achieve better speeds at the cost of memory. + </member> <member name="download_file" type="String" setter="set_download_file" getter="get_download_file" default=""""> The file to download into. Will output any received file into it. </member> |