mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-13 02:53:38 +00:00
28 lines
589 B
C++
28 lines
589 B
C++
|
#pragma once
|
||
|
|
||
|
#include <Interpreters/Context.h>
|
||
|
#include <Server/HTTP/HTTPRequestHandlerFactory.h>
|
||
|
#include <Common/logger_useful.h>
|
||
|
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
class LibraryBridgeHandlerFactory : public HTTPRequestHandlerFactory, WithContext
|
||
|
{
|
||
|
public:
|
||
|
LibraryBridgeHandlerFactory(
|
||
|
const std::string & name_,
|
||
|
size_t keep_alive_timeout_,
|
||
|
ContextPtr context_);
|
||
|
|
||
|
std::unique_ptr<HTTPRequestHandler> createRequestHandler(const HTTPServerRequest & request) override;
|
||
|
|
||
|
private:
|
||
|
Poco::Logger * log;
|
||
|
const std::string name;
|
||
|
const size_t keep_alive_timeout;
|
||
|
};
|
||
|
|
||
|
}
|