26 lines
595 B
C++
26 lines
595 B
C++
#pragma once
|
|
|
|
#include <boost/asio/ip/tcp.hpp>
|
|
#include <boost/asio/strand.hpp>
|
|
#include <boost/beast/core.hpp>
|
|
#include <boost/beast/http.hpp>
|
|
#include <boost/json.hpp>
|
|
|
|
#include "../content_type.h"
|
|
|
|
namespace http_server
|
|
{
|
|
namespace net = boost::asio;
|
|
using namespace std::literals;
|
|
namespace sys = boost::system;
|
|
namespace json = boost::json;
|
|
namespace http = boost::beast::http;
|
|
using namespace std;
|
|
using net::ip::tcp;
|
|
|
|
using StringRequest = http::request<http::string_body>;
|
|
using StringResponse = http::response<http::string_body>;
|
|
|
|
StringResponse GetMapsHandler(const StringRequest&);
|
|
}
|