mirror of
https://git.tesses.org/tesses50/tessesframework.git
synced 2026-09-30 08:44:13 +00:00
Fix license compliance and fix things up, add reverse proxy, fix some security flaws with HttpUtils
This commit is contained in:
@@ -24,11 +24,15 @@
|
||||
|
||||
namespace Tesses::Framework::Http {
|
||||
class ChangeableServer {
|
||||
std::shared_ptr<IHttpServer> server;
|
||||
Tesses::Framework::Threading::Mutex mtx;
|
||||
|
||||
public:
|
||||
ChangeableServer();
|
||||
ChangeableServer(std::shared_ptr<IHttpServer> original);
|
||||
std::shared_ptr<IHttpServer> server;
|
||||
bool Handle(ServerContext &ctx);
|
||||
void SetServer(std::shared_ptr<IHttpServer> server);
|
||||
std::shared_ptr<IHttpServer> GetServer();
|
||||
~ChangeableServer();
|
||||
};
|
||||
} // namespace Tesses::Framework::Http
|
||||
Reference in New Issue
Block a user