userver: userver/server/handlers/fallback_handlers.hpp Source File
Loading...
Searching...
No Matches
fallback_handlers.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/server/handlers/fallback_handlers.hpp
4/// @brief Fallback HTTP handler identifiers and string conversion
5
6#include <cstddef>
7#include <string_view>
8
9USERVER_NAMESPACE_BEGIN
10
11namespace server::handlers {
12
13enum class FallbackHandler {
14 kImplicitOptions,
15};
16
17inline constexpr size_t kFallbackHandlerMax = static_cast<size_t>(FallbackHandler::kImplicitOptions);
18
19std::string_view ToString(FallbackHandler);
20
21FallbackHandler FallbackHandlerFromString(std::string_view fallback_str);
22
23} // namespace server::handlers
24
25USERVER_NAMESPACE_END