1#pragma once
2
3#include "IServer.h"
4
5#include <Poco/Net/HTTPRequestHandler.h>
6
7
8namespace DB
9{
10
11/// Response with "Ok.\n". Used for availability checks.
12class PingRequestHandler : public Poco::Net::HTTPRequestHandler
13{
14private:
15 IServer & server;
16
17public:
18 explicit PingRequestHandler(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