userver: userver/baggage/baggage.hpp File Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
baggage.hpp File Reference

Baggage header. Contains entries (key, value, optional<properties>). More...

#include <algorithm>
#include <optional>
#include <stdexcept>
#include <string>
#include <string_view>
#include <unordered_set>
#include <vector>
#include <userver/engine/task/inherited_variable.hpp>
+ Include dependency graph for baggage.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  baggage::BaggageException
 Baggage base exception. More...
 
class  baggage::BaggageEntryProperty
 property of entry. Has required key and optional value. Keys shouldn't contain '=', ';' and ','. Values shouldn't contains ',' and ';' More...
 
class  baggage::BaggageEntry
 Baggage Entry. Has required key and value, optional list of properties. Keys shouldn't contain '=' and ','. Values shouldn't contains ',' and ';'. More...
 
class  baggage::Baggage
 Baggage header. Contains entries (key, value, optional<properties>). More...
 

Typedefs

using baggage::BaggageProperties = std::vector< std::pair< std::string, std::optional< std::string > > >
 

Functions

std::optional< Baggagebaggage::TryMakeBaggage (std::string header, std::unordered_set< std::string > allowed_keys)
 Parsing function.
 
template<typename T >
bool baggage::HasInvalidSymbols (const T &obj)
 

Variables

engine::TaskInheritedVariable< Baggagebaggage::kInheritedBaggage
 

Detailed Description

Baggage header. Contains entries (key, value, optional<properties>).

Definition in file baggage.hpp.

Typedef Documentation

◆ BaggageProperties

using baggage::BaggageProperties = typedef std::vector<std::pair<std::string, std::optional<std::string> >>

Definition at line 20 of file baggage.hpp.

Function Documentation

◆ HasInvalidSymbols()

template<typename T >
bool baggage::HasInvalidSymbols ( const T &  obj)

Definition at line 153 of file baggage.hpp.

Variable Documentation

◆ kInheritedBaggage

engine::TaskInheritedVariable<Baggage> baggage::kInheritedBaggage
inline

Definition at line 159 of file baggage.hpp.