userver: userver/baggage/baggage_settings.hpp Source File
Loading...
Searching...
No Matches
baggage_settings.hpp
1#pragma once
2
3#include <string>
4#include <unordered_set>
5
6#include <userver/dynamic_config/snapshot.hpp>
7#include <userver/formats/json_fwd.hpp>
8
9USERVER_NAMESPACE_BEGIN
10
11namespace baggage {
12
13struct BaggageSettings final {
14 std::unordered_set<std::string> allowed_keys;
15};
16
17BaggageSettings Parse(const formats::json::Value& value, formats::parse::To<BaggageSettings>);
18
19extern const dynamic_config::Key<BaggageSettings> kBaggageSettings;
20
21extern const dynamic_config::Key<bool> kBaggageEnabled;
22
23} // namespace baggage
24
25USERVER_NAMESPACE_END