Renamed headersWithName to getAllHeadersNamed, I guess that's a better name

This commit is contained in:
b1rtek 2024-11-15 16:32:26 +01:00
parent e2866d1907
commit ef52442247
2 changed files with 2 additions and 2 deletions

View file

@ -91,7 +91,7 @@ namespace geode::utils::web {
* @param name name of the header
* @return std::optional<std::vector<std::string>>
*/
std::optional<std::vector<std::string>> headersWithName(std::string_view name) const;
std::optional<std::vector<std::string>> getAllHeadersNamed(std::string_view name) const;
};
class GEODE_DLL WebProgress final {

View file

@ -152,7 +152,7 @@ std::optional<std::string> WebResponse::header(std::string_view name) const {
return std::nullopt;
}
std::optional<std::vector<std::string>> WebResponse::headersWithName(std::string_view name) const {
std::optional<std::vector<std::string>> WebResponse::getAllHeadersNamed(std::string_view name) const {
if (auto str = std::string(name); m_impl->m_headers.contains(str)) {
return m_impl->m_headers.at(str);
}