Class Baggage

Class Documentation

class Baggage

Public Functions

inline Baggage() noexcept
inline Baggage(size_t size) noexcept
template<class T>
inline Baggage(const T &keys_and_values) noexcept
inline bool GetValue(nostd::string_view key, std::string &value) const noexcept
inline nostd::shared_ptr<Baggage> Set(const nostd::string_view &key, const nostd::string_view &value) noexcept
inline bool GetAllEntries(nostd::function_ref<bool(nostd::string_view, nostd::string_view)> callback) const noexcept
inline nostd::shared_ptr<Baggage> Delete(nostd::string_view key) noexcept
inline std::string ToHeader() const noexcept

Public Static Functions

static inline nostd::shared_ptr<Baggage> GetDefault()
static inline nostd::shared_ptr<Baggage> FromHeader(nostd::string_view header) noexcept

Public Static Attributes

static constexpr size_t kMaxKeyValuePairs = 180
static constexpr size_t kMaxKeyValueSize = 4096
static constexpr size_t kMaxSize = 8192
static constexpr char kKeyValueSeparator = '='
static constexpr char kMembersSeparator = ','
static constexpr char kMetadataSeparator = ';'