#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 173 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 175 of file predefined_header.hpp.
|
inlineexplicit |
Definition at line 187 of file predefined_header.hpp.
|
inlineconstexpr |
Definition at line 185 of file predefined_header.hpp.
|
inlineconstexpr |
Definition at line 181 of file predefined_header.hpp.
|
inlineconstexpr |
Definition at line 183 of file predefined_header.hpp.
|
friend |
Definition at line 190 of file predefined_header.hpp.
|
friend |
Definition at line 191 of file predefined_header.hpp.