1 #ifndef XXHR_XXHR_TYPES_H 2 #define XXHR_XXHR_TYPES_H 11 constexpr
const auto CRLF =
"\r\n";
14 struct CaseInsensitiveCompare {
15 bool operator()(
const std::string& a,
const std::string& b)
const noexcept {
16 return std::lexicographical_compare(
17 a.begin(), a.end(), b.begin(), b.end(),
18 [](
unsigned char ac,
unsigned char bc) {
return std::tolower(ac) < std::tolower(bc); });
23 using Header = std::map<std::string, std::string, CaseInsensitiveCompare>;
24 using Url = std::string;
main library namespace
Definition: api.hpp:19
std::map< std::string, std::string, CaseInsensitiveCompare > Header
HTTP Headers to add to the request or received in xxhr::Response.
Definition: xxhrtypes.hpp:23