diff options
author | Alexander Tkachev | 2019-11-02 05:10:41 +0700 |
---|---|---|
committer | Eugene Sandulenko | 2019-11-05 01:47:00 +0100 |
commit | f7d9156967af8005543434c64430fdf06cab7033 (patch) | |
tree | 3eabce49f7d2432427c0f036c252f139dd5bb66c /backends/module.mk | |
parent | bc63abd3e198a07ae6af093ae5c472379b86a9aa (diff) | |
download | scummvm-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.mk | 1 |
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 |