MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / createHTTPHandlerFactory

Function createHTTPHandlerFactory

src/Server/HTTPHandlerFactory.cpp:292–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290}
291
292static inline HTTPRequestHandlerFactoryPtr
293createHTTPHandlerFactory(IServer & server, const Poco::Util::AbstractConfiguration & config, const std::string & name, AsynchronousMetrics & async_metrics, const std::string & http_handlers_key = "http_handlers")
294{
295 if (config.has(http_handlers_key))
296 {
297 return createHandlersFactoryFromConfig(server, config, name, http_handlers_key, async_metrics);
298 }
299
300 auto factory = std::make_shared<HTTPRequestHandlerFactoryMain>(name);
301 addDefaultHandlersFactory(*factory, server, config, async_metrics);
302 return factory;
303}
304
305static inline HTTPRequestHandlerFactoryPtr createInterserverHTTPHandlerFactory(IServer & server, const std::string & name, const Poco::Util::AbstractConfiguration & config)
306{

Callers 1

createHandlerFactoryFunction · 0.85

Calls 3

hasMethod · 0.45

Tested by

no test coverage detected