| 44 | struct StringHashByLower { |
| 45 | public: |
| 46 | size_t |
| 47 | operator()(std::string_view str) const |
| 48 | { |
| 49 | std::string lower; |
| 50 | lower.resize(str.size()); |
| 51 | std::transform(str.begin(), str.end(), lower.begin(), [](unsigned char c) -> unsigned char { return std::tolower(c); }); |
| 52 | return std::hash<std::string>()(lower); |
| 53 | } |
| 54 | }; |
| 55 | |
| 56 | /** The type used to store the set of user-sensitive HTTP fields, such as |