summaryrefslogtreecommitdiff
path: root/zen/http.h
diff options
context:
space:
mode:
Diffstat (limited to 'zen/http.h')
-rw-r--r--zen/http.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/zen/http.h b/zen/http.h
index ebbb8bd8..1943b129 100644
--- a/zen/http.h
+++ b/zen/http.h
@@ -50,11 +50,11 @@ HttpInputStream sendHttpPost(const Zstring& url,
bool internetIsAlive(); //noexcept
std::wstring formatHttpError(int httpStatus);
-bool isValidEmail(const std::string& email);
+bool isValidEmail(const std::string_view& email);
std::string htmlSpecialChars(const std::string_view& str);
std::string xWwwFormUrlEncode(const std::vector<std::pair<std::string, std::string>>& paramPairs);
-std::vector<std::pair<std::string, std::string>> xWwwFormUrlDecode(const std::string& str);
+std::vector<std::pair<std::string, std::string>> xWwwFormUrlDecode(const std::string_view str);
}
#endif //HTTP_H_879083425703425702
bgstack15