ClickHouse/dbms/src/Server/OLAPHTTPHandler.h

30 lines
558 B
C
Raw Normal View History

#pragma once
#include "Server.h"
namespace DB
{
2014-03-21 13:42:14 +00:00
/// Обработчик http-запросов в формате OLAP-server.
class OLAPHTTPHandler : public Poco::Net::HTTPRequestHandler
{
public:
OLAPHTTPHandler(Server & server_)
: server(server_)
, log(&Logger::get("OLAPHTTPHandler"))
{
2014-03-21 13:42:14 +00:00
}
void handleRequest(Poco::Net::HTTPServerRequest & request, Poco::Net::HTTPServerResponse & response);
private:
Server & server;
Logger * log;
void processQuery(Poco::Net::HTTPServerRequest & request, Poco::Net::HTTPServerResponse & response);
};
}