#pragma once #include #include #include namespace DB { class HTTPRequestHandler : private boost::noncopyable { public: virtual ~HTTPRequestHandler() = default; virtual void handleRequest(HTTPServerRequest & request, HTTPServerResponse & response, const ProfileEvents::Event & write_event) = 0; virtual void handleRequest(HTTPServerRequest & request, HTTPServerResponse & response) { handleRequest(request, response, ProfileEvents::end()); } }; }