ClickHouse/dbms/programs/server/RootRequestHandler.h

28 lines
479 B
C++
Raw Normal View History

2017-08-09 14:33:07 +00:00
#pragma once
#include "IServer.h"
#include <Poco/Net/HTTPRequestHandler.h>
2017-08-09 14:33:07 +00:00
namespace DB
{
/// Response with custom string. Can be used for browser.
class RootRequestHandler : public Poco::Net::HTTPRequestHandler
{
private:
IServer & server;
public:
explicit RootRequestHandler(IServer & server_) : server(server_)
2017-08-09 14:33:07 +00:00
{
}
void handleRequest(
Poco::Net::HTTPServerRequest & request,
Poco::Net::HTTPServerResponse & response) override;
};
}