6#include <userver/server/handlers/http_handler_base.hpp>
10namespace server::handlers {
37class Jemalloc
final :
public HttpHandlerBase {
48 static std::optional<Command> GetCommandFromString(std::string_view str);
49 static std::string ListCommands();
51 Jemalloc(
const components::ComponentConfig&,
const components::ComponentContext&);
55 static constexpr std::string_view
kName =
"handler-jemalloc";
57 std::string
HandleRequestThrow(
const http::HttpRequest&, request::RequestContext&)
const override;
59 static yaml_config::Schema GetStaticConfigSchema();
65inline constexpr bool components::kHasValidate<server::handlers::Jemalloc> =
true;