JSON body logging helpers for generated HTTP handlers.
Definition in file json_body_logging.hpp.
Go to the source code of this file.
#include <optional>#include <string>#include <string_view>#include <userver/dynamic_config/fwd.hpp>Classes | |
| struct | server::handlers::JsonBodyLoggingOptions |
| Options for selecting JSON body logging settings. More... | |
Namespaces | |
| namespace | server::handlers |
| Most common userver HTTP handlers. | |
Functions | |
| std::string | server::handlers::MaskJsonRequestBodyForLogging (const std::string &body, const dynamic_config::Snapshot &snapshot, const HandlerConfig &config, JsonBodyLoggingOptions options={}) |
| Apply the request JSON masking policy and limit to a logging hook's output. | |
| std::string | server::handlers::MaskJsonRequestBodyForLogging (std::string &&body, const dynamic_config::Snapshot &snapshot, const HandlerConfig &config, JsonBodyLoggingOptions options={}) |
| std::string | server::handlers::MaskJsonResponseBodyForLogging (const std::string &body, const dynamic_config::Snapshot &snapshot, const HandlerConfig &config, JsonBodyLoggingOptions options={}) |
| Apply the response JSON masking policy and limit. | |
| std::string | server::handlers::MaskJsonResponseBodyForLogging (std::string &&body, const dynamic_config::Snapshot &snapshot, const HandlerConfig &config, JsonBodyLoggingOptions options={}) |