32namespace network_manager
35namespace common_headers
47const std::string
Host =
"Host";
55namespace common_content_types
74 [](
const char leftChar,
const char rightChar) {
75 return std::tolower (leftChar) == std::tolower (rightChar);
81 const size_t colonPosition = header.find (
": ");
84 return { header, std::string () };
87 header.substr (0, colonPosition),
88 header.substr (colonPosition + 2)
102 item->
Value = std::move (headerValue);
104 mHeaders.push_back ({ headerName, std::move (headerValue) });
114 mHeaders.push_back ({ std::move (headerName), std::move (headerValue) });
119 return getHeader (headerName) !=
nullptr;
126 if (header !=
nullptr)
127 return header->
Value;
134 return const_cast<HeadersList*
>(
this)->getHeader (idx);
169 if (idx < mHeaders.size ())
170 return &mHeaders[idx];
177 for (
Header& header : mHeaders)
179 if (header.hasSameName (headerName))
std::unique_ptr< DBConnection > Connection
const TranslatableString name
constexpr size_t npos(-1)
const std::string ApplicationXml
const std::string ApplicationXWwwFormUrlencoded
const std::string ApplicationXGzip
const std::string ApplicationJson
const std::string ApplicationXOctetStream