HTTP server programming using the C++ REST SDK

We have already learned about HTTP client programming model supported by the C++ REST SDK. We worked with the asynchronous task-continuation-based API to retrieve contents 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 HTTP requests, and we can place handlers for each type of the HTTP verbs, such as GET, PUT, POST and so on

///////////////////////////////// // 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 web::http::experimental::listener; ...

Get C++ Reactive Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.