| 157 | } |
| 158 | |
| 159 | inline bool response::has_header(char const* header) const |
| 160 | { |
| 161 | return std::any_of(m_headers.begin(), m_headers.end(), [header](std::pair<std::string, std::string> const& p) { |
| 162 | return p.first == header; |
| 163 | }); |
| 164 | } |
| 165 | |
| 166 | inline lambda_runtime::outcome<std::string, bool> response::get_header(char const* header) const |
| 167 | { |