mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 03:12:43 +00:00
28 lines
479 B
C++
28 lines
479 B
C++
#pragma once
|
|
|
|
#include "IServer.h"
|
|
|
|
#include <Poco/Net/HTTPRequestHandler.h>
|
|
|
|
|
|
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_)
|
|
{
|
|
}
|
|
|
|
void handleRequest(
|
|
Poco::Net::HTTPServerRequest & request,
|
|
Poco::Net::HTTPServerResponse & response) override;
|
|
};
|
|
|
|
}
|