microsoft / cpprestsdk

The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Other
8.01k stars 1.66k forks source link

Recommendations for C++ REST libraries for new projects #1647

Closed kyle-klassy closed 3 years ago

kyle-klassy commented 3 years ago

Is there a C++ REST library or package that Microsoft recommends for new projects now that the C++ REST SDK has been moved to maintenance mode? Is there an equivalent library for cpp that is supported?

Barenboim commented 3 years ago

Recommending: https://github.com/sogou/workflow

#include <stdio.h>
#include "workflow/WFHttpServer.h"

int main()
{
    WFHttpServer server([](WFHttpTask *task) {
        task->get_resp()->append_output_body("<html>Hello World!</html>");
    });

    if (server.start(8888) == 0) { // start server on port 8888
        getchar(); // press "Enter" to end.
        server.stop();
    }

    return 0;
}
ghost commented 3 years ago

@Barenboim Made in China 👎

barcharcraz commented 3 years ago

We usually recommend libcurl or Qt's networking support library.