Most common userver HTTP handlers. More...
Classes | |
class | ClientError |
class | ConflictError |
class | CustomHandlerException |
Base class for handler exceptions. More... | |
class | DnsClientControl |
Handlers that controls the DNS client. More... | |
class | DynamicDebugLog |
Handler for forcing specific lines logging. Feature also known as dynamic debug logging. More... | |
class | ExceptionWithCode |
struct | ExternalBody |
struct | ExtraHeaders |
struct | FormattedErrorData |
class | HandlerBase |
Base class for the request handlers. More... | |
struct | HandlerConfig |
struct | HandlerErrorCodeHash |
class | HttpHandlerBase |
Base class for all the Userver HTTP Handlers. More... | |
class | HttpHandlerFlatbufBase |
Convenient base for handlers that accept requests with body in Flatbuffer format and respond with body in Flatbuffer format. More... | |
class | HttpHandlerJsonBase |
Convenient base for handlers that accept requests with body in JSON format and respond with body in JSON format. More... | |
class | HttpHandlerStatic |
Handler that returns HTTP 200 if file exist and returns file data with mapped content/type. More... | |
class | InspectRequests |
Handler that returns information about all in-flight requests. More... | |
struct | InternalMessage |
class | InternalServerError |
class | Jemalloc |
Handler that controls the jemalloc allocator. More... | |
class | JsonErrorBuilder |
class | LegacyJsonErrorBuilder |
class | LogLevel |
Handler that controls logging levels of all the loggers. More... | |
class | OnLogRotate |
Handler that controls logging levels of all the loggers. More... | |
class | Ping |
Handler that returns HTTP 200 if the service is OK and able to process requests. More... | |
class | RequestParseError |
class | ResourceNotFound |
class | ServerMonitor |
Handler that returns statistics data. More... | |
struct | ServiceErrorCode |
class | TestsControl |
Handler that allows to control the behavior of server from tests, and functional tests with testsuite in particular. More... | |
class | Unauthorized |
Typedefs | |
using | Headers = std::unordered_map< std::string, std::string, utils::StrIcaseHash, utils::StrIcaseEqual > |
Enumerations | |
enum class | HandlerErrorCode { kUnknownError , kClientError , kRequestParseError , kUnauthorized , kForbidden , kResourceNotFound , kInvalidUsage , kNotAcceptable , kConflictState , kPayloadTooLarge , kTooManyRequests , kServerSideError , kBadGateway , kGatewayTimeout , kUnsupportedMediaType } |
enum class | FallbackHandler { kImplicitOptions } |
enum class | UrlTrailingSlashOption { kBoth , kStrictMatch , kDefault = kBoth } |
Defines matching behavior for paths with trailing slashes. More... | |
Functions | |
std::string | GetCodeDescription (HandlerErrorCode) |
std::string | GetFallbackServiceCode (HandlerErrorCode) |
const std::string & | ToString (FallbackHandler) |
FallbackHandler | FallbackHandlerFromString (const std::string &fallback_str) |
HandlerConfig | ParseHandlerConfigsWithDefaults (const yaml_config::YamlConfig &value, const server::ServerConfig &server_config, bool is_monitor=false) |
Variables | |
constexpr size_t | kFallbackHandlerMax |
Most common userver HTTP handlers.
using server::handlers::Headers = typedef std::unordered_map<std::string, std::string, utils::StrIcaseHash, utils::StrIcaseEqual> |
Definition at line 70 of file exceptions.hpp.
|
strong |
Definition at line 9 of file fallback_handlers.hpp.
|
strong |
Enumeration that defines protocol-agnostic handler error condition codes, used by server::handlers::CustomHandlerException.
A handler for a specific protocol (e.g. http) should define mapping from the HandlerErrorCode to protocol-specific error code.
Definition at line 28 of file exceptions.hpp.
|
strong |
Defines matching behavior for paths with trailing slashes.
Enumerator | |
---|---|
kBoth | ignore trailing slashes when matching paths |
kStrictMatch | require exact match for trailing slashes in paths |
Definition at line 21 of file handler_config.hpp.
|
constexpr |
Definition at line 13 of file fallback_handlers.hpp.