8#include <userver/components/component_base.hpp>
9#include <userver/engine/task/task_processor_fwd.hpp>
10#include <userver/server/server.hpp>
11#include <userver/utils/statistics/entry.hpp>
13USERVER_NAMESPACE_BEGIN
94 Server(
const components::ComponentConfig& component_config,
95 const components::ComponentContext& component_context);
103 const server::Server& GetServer()
const;
105 server::Server& GetServer();
108 engine::TaskProcessor& task_processor);
110 static yaml_config::Schema GetStaticConfigSchema();
113 void WriteStatistics(utils::statistics::Writer& writer);
115 std::unique_ptr<server::Server> server_;
116 utils::statistics::Entry server_statistics_holder_;
117 utils::statistics::Entry handler_statistics_holder_;
121inline constexpr bool kHasValidate<Server> =
true;