add 'headers' argument to network.get, network.get_binary and network.post

This commit is contained in:
MihailRis
2025-09-08 23:46:37 +03:00
parent cda5bfaf40
commit 9871bf1292
3 changed files with 72 additions and 10 deletions
+4
View File
@@ -25,6 +25,7 @@ namespace network {
const std::string& url,
OnResponse onResponse,
OnReject onReject=nullptr,
std::vector<std::string> headers = {},
long maxSize=0
) = 0;
@@ -33,6 +34,7 @@ namespace network {
const std::string& data,
OnResponse onResponse,
OnReject onReject=nullptr,
std::vector<std::string> headers = {},
long maxSize=0
) = 0;
@@ -144,6 +146,7 @@ namespace network {
const std::string& url,
OnResponse onResponse,
OnReject onReject = nullptr,
std::vector<std::string> headers = {},
long maxSize=0
);
@@ -152,6 +155,7 @@ namespace network {
const std::string& fieldsData,
OnResponse onResponse,
OnReject onReject = nullptr,
std::vector<std::string> headers = {},
long maxSize=0
);