userver: userver/baggage/baggage.hpp File Reference
Loading...
Searching...
No Matches
baggage.hpp File Reference

Detailed Description

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

Definition in file baggage.hpp.

Go to the source code of this file.

#include <algorithm>
#include <optional>
#include <stdexcept>
#include <string>
#include <string_view>
#include <unordered_set>
#include <vector>
#include <userver/engine/task/inherited_variable.hpp>
This graph shows which files directly or indirectly include 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 {engine::TaskInheritedVariablePriority::kBackground}

Typedef Documentation

◆ BaggageProperties

using baggage::BaggageProperties = 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 146 of file baggage.hpp.

Variable Documentation

◆ kInheritedBaggage

Definition at line 152 of file baggage.hpp.