1 | #pragma once |
---|---|
2 | |
3 | #include "IServer.h" |
4 | |
5 | #include <Poco/Net/HTTPRequestHandler.h> |
6 | |
7 | |
8 | namespace DB |
9 | { |
10 | |
11 | /// Response with custom string. Can be used for browser. |
12 | class RootRequestHandler : public Poco::Net::HTTPRequestHandler |
13 | { |
14 | private: |
15 | IServer & server; |
16 | |
17 | public: |
18 | explicit RootRequestHandler(IServer & server_) : server(server_) |
19 | { |
20 | } |
21 | |
22 | void handleRequest( |
23 | Poco::Net::HTTPServerRequest & request, |
24 | Poco::Net::HTTPServerResponse & response) override; |
25 | }; |
26 | |
27 | } |
28 |