pull/1/head
Volker Birk 3 years ago
parent abc41f6b75
commit 3b029f505c

@ -11,7 +11,7 @@ int main()
std::cout << "adding handler for http://127.0.0.1:8080/handler/sample\n";
web.add_url_handler("/handler/(?<name>\\w+)",
[](boost::cmatch m, pEp::Webserver::request& req)->pEp::Webserver::response* {
pEp::Webserver::response *res = new pEp::Webserver::response;
pEp::Webserver::response *res = new pEp::Webserver::response{http::status::ok, req.version()};
// https://www.boost.org/doc/libs/1_73_0/libs/beast/doc/html/beast/ref/boost__beast__http__response.html

Loading…
Cancel
Save