Skip to Content
C++ Reactive Programming
book

C++ Reactive Programming

by Praseed Pai, Peter Abraham
June 2018
Intermediate to advanced
348 pages
8h 45m
English
Packt Publishing
Content preview from C++ Reactive Programming

Invoking REST services using the RxCurl library

The RxCurl library, written by Kirk Shoop, originally supported  GET and POST verbs. The Twitter analysis app only warrants that. The authors of the book have added support for the PUT and DELETE verbs.  You can refer to the source of rxcurl.h ,to  see necessary changes made to support these additional verbs, in the Github repository: Let us see how we can use the modified library to make calls to the REST server, we wrote above.  

#include <iostream> #include <stdio.h> #include <iostream> #include <stdio.h> #include <stdlib.h> #include <map> #include <chrono> using namespace std; using namespace std::chrono; //////////////////////// // include Curl Library and // Rxcpp library // #include <curl/curl.h> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Functional Programming in C++

Functional Programming in C++

Ivan Cukic

Publisher Resources

ISBN: 9781788629775Supplemental Content