#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 168 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 170 of file predefined_header.hpp.
|
inlineexplicit |
Definition at line 182 of file predefined_header.hpp.
|
inlineconstexpr |
Definition at line 180 of file predefined_header.hpp.
|
inlineconstexpr |
Definition at line 176 of file predefined_header.hpp.
|
inlineconstexpr |
Definition at line 178 of file predefined_header.hpp.
|
friend |
Definition at line 185 of file predefined_header.hpp.
|
friend |
Definition at line 186 of file predefined_header.hpp.