3#include "cpprest/http_listener.h"
8using namespace utility;
9using namespace http::experimental::listener;
37 std::vector<std::pair<std::string, std::shared_ptr<Resource> > > resources;
49 void handle(http_request message);
57 http_listener listener;
84 inline void open() { listener.open().wait(); }
91 inline void close() { listener.close().wait(); }
104 void add(std::string path, std::shared_ptr<Resource> resource);
114 void remove(std::string path);
HTTP Resource base class.
void close()
Stop listener.
void open()
Start listener.