mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
18 lines
445 B
C++
18 lines
445 B
C++
#pragma once
|
|
#include <Poco/Net/HTTPRequestHandler.h>
|
|
|
|
namespace DB
|
|
{
|
|
/** Simple ping handler, answers "Ok." to GET request
|
|
*/
|
|
class PingHandler : public Poco::Net::HTTPRequestHandler
|
|
{
|
|
public:
|
|
PingHandler(size_t keep_alive_timeout_) : keep_alive_timeout(keep_alive_timeout_) {}
|
|
void handleRequest(Poco::Net::HTTPServerRequest & request, Poco::Net::HTTPServerResponse & response) override;
|
|
|
|
private:
|
|
size_t keep_alive_timeout;
|
|
};
|
|
}
|