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
97 Server(
const components::ComponentConfig& component_config,
const components::ComponentContext& component_context);
105 const server::Server& GetServer()
const;
107 server::Server& GetServer();
109 void AddHandler(
const server::handlers::
HttpHandlerBase& handler, engine::TaskProcessor& task_processor);
111 static yaml_config::Schema GetStaticConfigSchema();
114 void WriteStatistics(
utils::statistics::Writer& writer);
116 std::unique_ptr<server::Server> server_;
117 utils::statistics::Entry server_statistics_holder_;
118 utils::statistics::Entry handler_statistics_holder_;
122inline constexpr bool kHasValidate<Server> =
true;