mirror of
https://github.com/geode-sdk/geode.git
synced 2025-02-18 09:10:17 -05:00
Renamed headersWithName to getAllHeadersNamed, I guess that's a better name
This commit is contained in:
parent
e2866d1907
commit
ef52442247
2 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ namespace geode::utils::web {
|
||||||
* @param name name of the header
|
* @param name name of the header
|
||||||
* @return std::optional<std::vector<std::string>>
|
* @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 {
|
class GEODE_DLL WebProgress final {
|
||||||
|
|
|
@ -152,7 +152,7 @@ std::optional<std::string> WebResponse::header(std::string_view name) const {
|
||||||
return std::nullopt;
|
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)) {
|
if (auto str = std::string(name); m_impl->m_headers.contains(str)) {
|
||||||
return m_impl->m_headers.at(str);
|
return m_impl->m_headers.at(str);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue