| 1 | #pragma once |
| 2 | |
| 3 | /// @file |
| 4 | /// @brief Include for the @ref coeurl::Headers |
| 5 | |
| 6 | #include <map> |
| 7 | #include <string> |
| 8 | |
| 9 | namespace coeurl { |
| 10 | /// @brief custom comparator used in the headers map |
| 11 | /// |
| 12 | /// Used for caseinsensitive comparisons |
| 13 | struct { |
| 14 | //! Comparison operator, returns true if the lhs is caseinsensitively less than |
| 15 | //! the rhs. |
| 16 | bool (const std::string &, const std::string &) const; |
| 17 | }; |
| 18 | |
| 19 | /// @brief A type to hold headers by name. |
| 20 | /// |
| 21 | /// A map from a case insensitive header name to the header value. |
| 22 | using = std::map<std::string, std::string, header_less>; |
| 23 | } // namespace coeurl |
| 24 | |