http_listener listenerVoices(L"http://localhost:8080/hello"); // http_listener listenerVoices(L"https://www.google.com/"); this don't work listenerVoices.open().wait(); listenerVoices.support(web::http::methods::GET, [](web::http::http_request request) { request.reply(web::http::status_codes::OK, L"Hello world"); } ); std::string line; std::cout << "Press enter to exit" << std::endl; std::getline(std::cin, line); listenerVoices.close().wait();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)