userver
C++ Async Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
on_log_rotate.hpp
Go to the documentation of this file.
1
#pragma once
2
5
6
#include <
userver/server/handlers/http_handler_base.hpp
>
7
8
USERVER_NAMESPACE_BEGIN
9
10
namespace
components
{
11
class
Logging
;
12
}
// namespace components
13
14
namespace
server::handlers
{
15
32
class
OnLogRotate final :
public
HttpHandlerBase {
33
public
:
34
OnLogRotate(
const
components::ComponentConfig
& config,
const
components::ComponentContext
& component_context);
35
38
static
constexpr
std::string_view
kName
=
"handler-on-log-rotate"
;
39
40
std::string
HandleRequestThrow
(
const
http::HttpRequest
&
request
,
request::RequestContext
&)
const override
;
41
42
static
yaml_config::Schema
GetStaticConfigSchema
();
43
44
private
:
45
components::Logging
& logging_component_;
46
};
47
48
}
// namespace server::handlers
49
50
template
<>
51
inline
constexpr
bool
components::kHasValidate<server::handlers::OnLogRotate>
=
true
;
52
53
USERVER_NAMESPACE_END
userver
server
handlers
on_log_rotate.hpp
Generated on
for userver by
Doxygen
1.17.0