| 264 | using util::Split; |
| 265 | |
| 266 | std::optional<std::string> HTTPHeaders::FindFirst(const std::string_view key) const |
| 267 | { |
| 268 | for (const auto& item : m_headers) { |
| 269 | if (CaseInsensitiveEqual(key, item.first)) { |
| 270 | return item.second; |
| 271 | } |
| 272 | } |
| 273 | return std::nullopt; |
| 274 | } |
| 275 | |
| 276 | std::vector<std::string_view> HTTPHeaders::FindAll(const std::string_view key) const |
| 277 | { |