Initial commit

This commit is contained in:
2020-02-10 20:33:22 +01:00
commit a175bf5af9
31 changed files with 2646 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
#ifndef HTTPSERVER_H
#define HTTPSERVER_H
#include "HttpPostData.h"
#include <functional>
#include <memory>
#include <vector>
namespace Http {
class HttpServerImpl;
class HttpServer
{
public:
HttpServer(unsigned short port, std::function<std::string(const std::string&, const std::vector<HttpPostData>&)> callback);
~HttpServer();
void Wait();
private:
std::unique_ptr<HttpServerImpl> m_pHttpServerImpl;
};
} // namespace Http
#endif // HTTPSERVER_H