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,
18 formats::parse::To<BaggageSettings>);
19
20extern const dynamic_config::Key<BaggageSettings> kBaggageSettings;
21
22extern const dynamic_config::Key<bool> kBaggageEnabled;
23
24} // namespace baggage
25
26USERVER_NAMESPACE_END