extract route
This commit is contained in:
parent
42382261a7
commit
4230d9ec24
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(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user