* Locates the header value ignoring case. This is different than returning a mapping * of all parsed headers. * This function acknowledges that header entries should be searched case insensitively. * @param key key to search * @return header value. */
| 185 | * @return header value. |
| 186 | */ |
| 187 | const std::string getHeaderValue(const std::string &key) { |
| 188 | std::string ret; |
| 189 | for (const auto &kv : header_response_.getHeaderMap()) { |
| 190 | if (utils::StringUtils::equalsIgnoreCase(key, kv.first)) { |
| 191 | ret = kv.second; |
| 192 | break; |
| 193 | } |
| 194 | } |
| 195 | return ret; |
| 196 | } |
| 197 | |
| 198 | /** |
| 199 | * Determines if we are connected and operating |