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();
49 void setCORS_allow(
const std::string& CORS_allow );
55 std::shared_ptr<DebugStream> mylog;
56 Poco::Net::SocketAddress sa;
58 std::shared_ptr<Poco::Net::HTTPServer> http;
59 std::shared_ptr<UHttpRequestHandlerFactory> reqFactory;
Definition: UHttpServer.h:37
Definition: CommonEventLoop.h:15