#include <userver/http/predefined_header.hpp>
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 169 of file predefined_header.hpp.
Public Member Functions | |
| constexpr | PredefinedHeader (utils::StringLiteral name) |
| constexpr | operator utils::StringLiteral () const |
| constexpr | operator utils::zstring_view () const |
| constexpr | operator std::string_view () const |
| operator std::string () const | |
|
inlineexplicitconstexpr |
Definition at line 171 of file predefined_header.hpp.
|
inlineexplicit |
Definition at line 183 of file predefined_header.hpp.
|
inlineconstexpr |
Definition at line 181 of file predefined_header.hpp.
|
inlineconstexpr |
Definition at line 177 of file predefined_header.hpp.
|
inlineconstexpr |
Definition at line 179 of file predefined_header.hpp.
|
friend |
Definition at line 186 of file predefined_header.hpp.
|
friend |
Definition at line 187 of file predefined_header.hpp.