mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
28 lines
478 B
C++
28 lines
478 B
C++
#pragma once
|
|
|
|
#include "IServer.h"
|
|
|
|
#include <Poco/Net/HTTPRequestHandler.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/// Response with "Ok.\n". Used for availability checks.
|
|
class PingRequestHandler : public Poco::Net::HTTPRequestHandler
|
|
{
|
|
private:
|
|
IServer & server;
|
|
|
|
public:
|
|
explicit PingRequestHandler(IServer & server_) : server(server_)
|
|
{
|
|
}
|
|
|
|
void handleRequest(
|
|
Poco::Net::HTTPServerRequest & request,
|
|
Poco::Net::HTTPServerResponse & response) override;
|
|
};
|
|
|
|
}
|