summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/http_request.h
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2016-09-04 14:04:51 +0000
committerRobert Pösel <robyer@seznam.cz>2016-09-04 14:04:51 +0000
commitbb81def84fd84bb6e762e556169ae081b67569f8 (patch)
tree20992bff1320bec1ce3b60b4a3b3cda3506c4219 /protocols/FacebookRM/src/http_request.h
parent8234832e06e873df035270f162d7d151fbf6e7eb (diff)
Facebook: Use persistent connection again
git-svn-id: http://svn.miranda-ng.org/main/trunk@17247 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/http_request.h')
-rw-r--r--protocols/FacebookRM/src/http_request.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/http_request.h b/protocols/FacebookRM/src/http_request.h
index 86a23cb5c8..87423387fe 100644
--- a/protocols/FacebookRM/src/http_request.h
+++ b/protocols/FacebookRM/src/http_request.h
@@ -234,7 +234,10 @@ public:
HttpRequestHeaders Headers;
HttpRequestBody Body;
+ enum PersistentType { NONE, DEFAULT, CHANNEL };
+
bool NotifyErrors;
+ PersistentType Persistent;
HttpRequest(int type, LPCSTR url)
: Url(*this, url), Headers(*this)
@@ -246,6 +249,7 @@ public:
timeout = 20 * 1000;
NotifyErrors = true;
+ Persistent = DEFAULT;
}
HttpRequest(int type, HttpRequestUrlFormat, LPCSTR urlFormat, ...)
@@ -259,6 +263,7 @@ public:
timeout = 20 * 1000;
NotifyErrors = true;
+ Persistent = DEFAULT;
}
virtual ~HttpRequest()