32namespace network_manager
35namespace common_headers
48const std::string
Host =
"Host";
56namespace common_content_types
76 [](
const char leftChar,
const char rightChar) {
77 return std::tolower (leftChar) == std::tolower (rightChar);
83 const size_t colonPosition = header.find (
": ");
86 return { header, std::string () };
89 header.substr (0, colonPosition),
90 header.substr (colonPosition + 2)
104 item->
Value = std::move (headerValue);
106 mHeaders.push_back ({ headerName, std::move (headerValue) });
116 mHeaders.push_back ({ std::move (headerName), std::move (headerValue) });
121 return getHeader (headerName) !=
nullptr;
128 if (header !=
nullptr)
129 return header->
Value;
136 return const_cast<HeadersList*
>(
this)->getHeader (idx);
171 if (idx < mHeaders.size ())
172 return &mHeaders[idx];
179 for (
Header& header : mHeaders)
181 if (header.hasSameName (headerName))
std::unique_ptr< DBConnection > Connection
constexpr size_t npos(-1)
const std::string ApplicationXml
const std::string ApplicationXWwwFormUrlencoded
const std::string ApplicationXGzip
const std::string ApplicationJson
const std::string MultipartFormData
const std::string ApplicationXOctetStream