| 290 | } |
| 291 | |
| 292 | static inline HTTPRequestHandlerFactoryPtr |
| 293 | createHTTPHandlerFactory(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 | |
| 305 | static inline HTTPRequestHandlerFactoryPtr createInterserverHTTPHandlerFactory(IServer & server, const std::string & name, const Poco::Util::AbstractConfiguration & config) |
| 306 | { |
no test coverage detected