8#include <userver/components/loggable_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
92 Server(
const components::ComponentConfig& component_config,
93 const components::ComponentContext& component_context);
97 void OnAllComponentsLoaded()
override;
99 void OnAllComponentsAreStopping()
override;
101 const server::Server& GetServer()
const;
103 server::Server& GetServer();
106 engine::TaskProcessor& task_processor);
108 static yaml_config::Schema GetStaticConfigSchema();
111 void WriteStatistics(utils::statistics::Writer& writer);
113 std::unique_ptr<server::Server> server_;
114 utils::statistics::Entry server_statistics_holder_;
115 utils::statistics::Entry handler_statistics_holder_;
119inline constexpr bool kHasValidate<Server> =
true;