|
|
@@ -28,6 +28,8 @@ class RemoteTextThread : public QThread {
|
|
|
std::string contentType;
|
|
|
std::string postData;
|
|
|
|
|
|
+ std::vector<std::string> extraHeaders;
|
|
|
+
|
|
|
int timeoutSec = 0;
|
|
|
|
|
|
void run() override;
|
|
|
@@ -46,6 +48,19 @@ public:
|
|
|
postData (postData_),
|
|
|
timeoutSec (timeoutSec_)
|
|
|
{}
|
|
|
+
|
|
|
+ inline RemoteTextThread(
|
|
|
+ std::string url_,
|
|
|
+ std::vector<std::string> &&extraHeaders_,
|
|
|
+ std::string contentType_ = std::string(),
|
|
|
+ std::string postData_ = std::string(),
|
|
|
+ int timeoutSec_ = 0)
|
|
|
+ : url (url_),
|
|
|
+ contentType (contentType_),
|
|
|
+ postData (postData_),
|
|
|
+ extraHeaders (std::move(extraHeaders_)),
|
|
|
+ timeoutSec (timeoutSec_)
|
|
|
+ {}
|
|
|
};
|
|
|
|
|
|
bool GetRemoteFile(
|