O'Reilly logo

C++ Reactive Programming by Peter Abraham, Praseed Pai

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

HTTP server programming using the C++ REST SDK

We have already learned about the HTTP client programming model supported by the C++ REST SDK. We worked with the asynchronous task-continuation-based API to retrieve the content of a web page and persist it into a disk file. Now, it is time to start concentrating on the REST SDK HTTP server programming. The C++ REST SDK has a listener interface that will handle the HTTP request, and we can place handlers for each type of the HTTP verbs, such as GET, PUT, and POST:

///////////////////////////////// // A Simple Web Application with C++ REST SDK // We can use Postman Or Curl to test the Server using namespace std; using namespace web; using namespace utility; using namespace http; using namespace ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required