aboutsummaryrefslogtreecommitdiff
path: root/backends/module.mk
diff options
context:
space:
mode:
authorAlexander Tkachev2019-11-02 05:10:41 +0700
committerEugene Sandulenko2019-11-05 01:47:00 +0100
commitf7d9156967af8005543434c64430fdf06cab7033 (patch)
tree3eabce49f7d2432427c0f036c252f139dd5bb66c /backends/module.mk
parentbc63abd3e198a07ae6af093ae5c472379b86a9aa (diff)
downloadscummvm-rg350-f7d9156967af8005543434c64430fdf06cab7033.tar.gz
scummvm-rg350-f7d9156967af8005543434c64430fdf06cab7033.tar.bz2
scummvm-rg350-f7d9156967af8005543434c64430fdf06cab7033.zip
NETWORKING: Enter SessionRequest
It is to be used in a Session, though it might be used separately. It must implement keep-alive, but it does not yet. You must not put it to ConnMan by yourself (instead, use start()) and you must call close() after you've finished using this request. You can either work with it in callback, or wait() and simply use its methods (check it's success() and then, for example, use text()). Like this: ``` Networking::SessionRequest *rq = new Networking::SessionRequest(url); rq->startAndWait(); if (rq->success()) warning("HTTP GET: %s", rq->text()); rq->close(); ```
Diffstat (limited to 'backends/module.mk')
-rw-r--r--backends/module.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/backends/module.mk b/backends/module.mk
index 886947e9da..bd16546858 100644
--- a/backends/module.mk
+++ b/backends/module.mk
@@ -66,6 +66,7 @@ MODULE_OBJS += \
networking/curl/curlrequest.o \
networking/curl/curljsonrequest.o \
networking/curl/postrequest.o \
+ networking/curl/sessionrequest.o \
networking/curl/request.o
endif