#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 171 of file predefined_header.hpp.
Public Member Functions | |
constexpr | PredefinedHeader (std::string_view name) |
constexpr | operator std::string_view () const |
operator std::string () const | |
|
inlineexplicitconstexpr |
Definition at line 173 of file predefined_header.hpp.
|
inlineexplicit |
Definition at line 180 of file predefined_header.hpp.
|
inlineconstexpr |
Definition at line 178 of file predefined_header.hpp.
|
friend |
Definition at line 183 of file predefined_header.hpp.
|
friend |
Definition at line 184 of file predefined_header.hpp.