#include "PingHandler.h" #include #include #include #include namespace DB { void PingHandler::handleRequest(HTTPServerRequest & /* request */, HTTPServerResponse & response, const ProfileEvents::Event & /*write_event*/) { try { setResponseDefaultHeaders(response); const char * data = "Ok.\n"; response.sendBuffer(data, strlen(data)); } catch (...) { tryLogCurrentException("PingHandler"); } } }