22 lines
613 B
C++
22 lines
613 B
C++
#pragma once
|
|
#include "sdk.h"
|
|
// boost.beast будет использовать std::string_view вместо boost::string_view
|
|
#define BOOST_BEAST_USE_STD_STRING_VIEW
|
|
|
|
#include <boost/asio/ip/tcp.hpp>
|
|
#include <boost/asio/strand.hpp>
|
|
#include <boost/beast/core.hpp>
|
|
#include <boost/beast/http.hpp>
|
|
|
|
#include "listener.h"
|
|
#include "session.h"
|
|
|
|
namespace http_server
|
|
{
|
|
template<typename RequestHandler>
|
|
void ServeHttp(net::io_context& ioc, const tcp::endpoint& endpoint, RequestHandler&& handler)
|
|
{
|
|
// Напишите недостающий код, используя информацию из урока
|
|
}
|
|
}
|