keep alive setting for server and websocket improvements

This commit is contained in:
2022-06-30 06:55:32 +02:00
parent dd07aaede6
commit def545ba3d
14 changed files with 327 additions and 380 deletions
+3 -1
View File
@@ -3,10 +3,12 @@
// 3rdparty lib includes
#include <asio_webserver/webserver.h>
class ExampleWebserver : public Webserver
class ExampleWebserver final : public Webserver
{
public:
using Webserver::Webserver;
bool connectionKeepAlive() const final { return true; }
std::unique_ptr<ResponseHandler> makeResponseHandler(ClientConnection &clientConnection, std::string_view method, std::string_view path, std::string_view protocol) final;
};