46 using Ptr = std::unique_ptr<Header>;
50 Header(
const std::initializer_list<KeyValueType> &initializer_list)
noexcept;
53 void set(
const std::string &key,
const std::string &value)
noexcept;
54 const std::string &
get(
const std::string &key,
const std::string &default_value)
noexcept;
55#if SESE_CXX_STANDARD > 201700L
56 std::string_view getView(
const std::string &key,
const std::string &default_value)
noexcept;
58 std::map<std::string, std::string>::iterator
begin() noexcept {
return headers.begin(); }
59 std::map<std::string, std::string>::iterator
end() noexcept {
return headers.end(); }
60 auto find(
const std::string &key)
noexcept {
return headers.find(key); }
74 const std::string &
get(
const std::string &key) {
return headers.at(key); }