summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-11-25 14:29:59 +0100
committerGitHub <noreply@github.com>2019-11-25 14:29:59 +0100
commit967cc2c014c7f6be67d249a87df871a08d56afff (patch)
tree35b71da6e88ec26130d3ef91730a8db5d3e48a30 /platform
parent5378a8f5b0d58b1622e737a39823ef5639e58405 (diff)
parented19b4076e0ec9252202086e65ffcc42510b6cdd (diff)
Merge pull request #33862 from Faless/net/http_request_chunk_size
Add download_chunk_size property to HTTPRequest.
Diffstat (limited to 'platform')
-rw-r--r--platform/javascript/http_client_javascript.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/javascript/http_client_javascript.cpp b/platform/javascript/http_client_javascript.cpp
index e6e933811f..1f3f2ed53c 100644
--- a/platform/javascript/http_client_javascript.cpp
+++ b/platform/javascript/http_client_javascript.cpp
@@ -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) {