extract route
This commit is contained in:
3
main.cpp
3
main.cpp
@@ -46,7 +46,8 @@ StringResponse MakeStringResponse(http::status status,
|
|||||||
|
|
||||||
StringResponse HandleRequest(StringRequest&& req)
|
StringResponse HandleRequest(StringRequest&& req)
|
||||||
{
|
{
|
||||||
// Подставьте сюда код из синхронной версии HTTP-сервера
|
auto route = req.target();
|
||||||
|
|
||||||
return MakeStringResponse(http::status::ok,
|
return MakeStringResponse(http::status::ok,
|
||||||
"Hello, World!"sv,
|
"Hello, World!"sv,
|
||||||
req.version(),
|
req.version(),
|
||||||
|
Reference in New Issue
Block a user