Browse Source

don't pollute global namespace.

pull/1/head
RokerHRO 2 years ago
parent
commit
0bfedc2c1c
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      webserver.hh

+ 6
- 4
webserver.hh View File

@ -6,12 +6,13 @@
#include <boost/regex.hpp>
#include <boost/beast/http.hpp>
namespace beast = boost::beast;
namespace http = beast::http;
namespace net = boost::asio;
using tcp = boost::asio::ip::tcp;
namespace pEp {
namespace beast = boost::beast;
namespace http = beast::http;
namespace net = boost::asio;
using tcp = boost::asio::ip::tcp;
// class Webserver
//
// when an URL handler is present it is called for each matching URL
@ -25,6 +26,7 @@ namespace pEp {
class Webserver {
public:
typedef boost::regex url_t;
typedef http::request< http::string_body > request;
typedef http::response< http::string_body > response;


Loading…
Cancel
Save