2022-08-03 11:19:13 +00:00
|
|
|
#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:
|
2024-01-23 17:04:50 +00:00
|
|
|
LoggerPtr log;
|
2022-08-03 11:19:13 +00:00
|
|
|
const std::string name;
|
|
|
|
const size_t keep_alive_timeout;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|