1 #ifndef DISABLE_REST_API
18 #ifndef UHttpServer_H_
19 #define UHttpServer_H_
23 #include <Poco/Net/HTTPServer.h>
24 #include "DebugStream.h"
25 #include "ThreadCreator.h"
26 #include "UHttpRequestHandler.h"
40 UHttpServer( std::shared_ptr<IHttpRequestRegistry>& supplier,
const std::string& host,
int port );
46 std::shared_ptr<DebugStream> log();
53 std::shared_ptr<DebugStream> mylog;
54 Poco::Net::SocketAddress sa;
56 std::shared_ptr<Poco::Net::HTTPServer> http;
57 std::shared_ptr<UHttpRequestHandlerFactory> reqFactory;
63 #endif // UHttpServer_H_