You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Add download_chunk_size property to HTTPRequest.
This allows setting the `read_chunk_size` of the internal HTTPClient. This is important to reduce the allocation overhead and number of file writes when downloading large files, allowing for better download speed.
This commit is contained in:
@@ -211,6 +211,10 @@ void HTTPClient::set_read_chunk_size(int p_size) {
|
||||
read_limit = p_size;
|
||||
}
|
||||
|
||||
int HTTPClient::get_read_chunk_size() const {
|
||||
return read_limit;
|
||||
}
|
||||
|
||||
Error HTTPClient::poll() {
|
||||
|
||||
switch (status) {
|
||||
|
||||
Reference in New Issue
Block a user