#include <userver/baggage/baggage.hpp>
Baggage Entry. Has required key and value, optional list of properties. Keys shouldn't contain '=' and ','. Values shouldn't contains ',' and ';'.
Definition at line 55 of file baggage.hpp.
Public Member Functions | |
BaggageEntry (std::string_view key, std::string_view value, std::vector< BaggageEntryProperty > properties) | |
std::string | ToString () const |
std::string | GetValue () const |
std::string | GetKey () const |
const std::vector< BaggageEntryProperty > & | GetProperties () const |
bool | HasProperty (const std::string &key) const |
Check that entry contains property with selected key. | |
const BaggageEntryProperty & | GetProperty (const std::string &key) const |
Get first property with selected key. | |
const std::vector< BaggageEntryProperty > & baggage::BaggageEntry::GetProperties | ( | ) | const |
const BaggageEntryProperty & baggage::BaggageEntry::GetProperty | ( | const std::string & | key | ) | const |
Get first property with selected key.
BaggageException | If key doesn't exist |
|
friend |
Definition at line 56 of file baggage.hpp.