2022-06-30 01:35:02 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
2022-06-30 02:08:09 +02:00
|
|
|
// 3rdparty lib includes
|
2022-07-05 13:07:36 +02:00
|
|
|
#include <asio_web/webserver.h>
|
2022-06-30 01:35:02 +02:00
|
|
|
|
2022-06-30 06:55:32 +02:00
|
|
|
class ExampleWebserver final : public Webserver
|
2022-06-30 01:35:02 +02:00
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
using Webserver::Webserver;
|
|
|
|
|
|
2022-06-30 06:55:32 +02:00
|
|
|
bool connectionKeepAlive() const final { return true; }
|
|
|
|
|
|
2022-06-30 01:35:02 +02:00
|
|
|
std::unique_ptr<ResponseHandler> makeResponseHandler(ClientConnection &clientConnection, std::string_view method, std::string_view path, std::string_view protocol) final;
|
|
|
|
|
};
|