| 274 | } |
| 275 | |
| 276 | std::vector<std::string_view> HTTPHeaders::FindAll(const std::string_view key) const |
| 277 | { |
| 278 | std::vector<std::string_view> ret; |
| 279 | for (const auto& item : m_headers) { |
| 280 | if (CaseInsensitiveEqual(key, item.first)) { |
| 281 | ret.push_back(item.second); |
| 282 | } |
| 283 | } |
| 284 | return ret; |
| 285 | } |
| 286 | |
| 287 | void HTTPHeaders::Write(std::string&& key, std::string&& value) |
| 288 | { |