mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05: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:
@@ -126,6 +126,9 @@ public:
|
||||
void set_download_file(const String &p_file);
|
||||
String get_download_file() const;
|
||||
|
||||
void set_download_chunk_size(int p_chunk_size);
|
||||
int get_download_chunk_size() const;
|
||||
|
||||
void set_body_size_limit(int p_bytes);
|
||||
int get_body_size_limit() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user