A struct to represent compile-time known header name. More...
#include <userver/http/predefined_header.hpp>
Public Member Functions | |
constexpr | PredefinedHeader (std::string_view name) |
constexpr | operator std::string_view () const |
operator std::string () const | |
Friends | |
class | header_map::Danger |
class | header_map::Map |
A struct to represent compile-time known header name.
Calculates the hash value at compile time with the same hasher HeaderMap uses, which allows to speed things up greatly.
Although it's possible to construct PredefinedHeader at runtime it makes little sense and is error-prone, since it doesn't own its data, so don't do that until really needed.
Definition at line 159 of file predefined_header.hpp.
|
inlineexplicitconstexpr |
Definition at line 161 of file predefined_header.hpp.
|
inlineexplicit |
Definition at line 168 of file predefined_header.hpp.
|
inlineconstexpr |
Definition at line 166 of file predefined_header.hpp.
|
friend |
Definition at line 171 of file predefined_header.hpp.
|
friend |
Definition at line 172 of file predefined_header.hpp.