mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 11:22:12 +00:00
31 lines
602 B
C++
31 lines
602 B
C++
#pragma once
|
|
|
|
#include "Server.h"
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/// Обработчик http-запросов в формате OLAP-server.
|
|
class OLAPHTTPHandler : public Poco::Net::HTTPRequestHandler
|
|
{
|
|
public:
|
|
OLAPHTTPHandler(Server & server_)
|
|
: server(server_)
|
|
, log(&Logger::get("OLAPHTTPHandler"))
|
|
{
|
|
LOG_TRACE(log, "In constructor.");
|
|
}
|
|
|
|
void handleRequest(Poco::Net::HTTPServerRequest & request, Poco::Net::HTTPServerResponse & response);
|
|
|
|
private:
|
|
Server & server;
|
|
|
|
Logger * log;
|
|
|
|
void processQuery(Poco::Net::HTTPServerResponse & response, std::istream & istr);
|
|
};
|
|
|
|
}
|