| 164 | } |
| 165 | |
| 166 | inline lambda_runtime::outcome<std::string, bool> response::get_header(char const* header) const |
| 167 | { |
| 168 | auto it = std::find_if(m_headers.begin(), m_headers.end(), [header](std::pair<std::string, std::string> const& p) { |
| 169 | return p.first == header; |
| 170 | }); |
| 171 | |
| 172 | if (it == m_headers.end()) { |
| 173 | return false; |
| 174 | } |
| 175 | return it->second; |
| 176 | } |
| 177 | |
| 178 | } // namespace http |
| 179 | } // namespace aws |