From 75bc2e56125125511a0505718dcb2c3d4150a933 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Tue, 4 Jan 2022 10:50:14 -0500 Subject: add upstream 11.16 --- zen/http.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'zen/http.h') diff --git a/zen/http.h b/zen/http.h index 07c3f28c..9457309c 100644 --- a/zen/http.h +++ b/zen/http.h @@ -13,10 +13,8 @@ namespace zen { -/* - - thread-safe! (Window/Linux/macOS) - - Linux/macOS: init OpenSSL before use! -*/ +/* - thread-safe! (Window/Linux/macOS) + - Linux/macOS: init libcurl before use! */ class HttpInputStream { public: @@ -38,19 +36,19 @@ private: HttpInputStream sendHttpGet(const Zstring& url, const Zstring& userAgent, - const Zstring* caCertFilePath /*optional: enable certificate validation*/, + const Zstring& caCertFilePath /*optional: enable certificate validation*/, const IoCallback& notifyUnbufferedIO /*throw X*/); //throw SysError, X HttpInputStream sendHttpPost(const Zstring& url, const std::vector>& postParams, const Zstring& userAgent, - const Zstring* caCertFilePath /*optional: enable certificate validation*/, + const Zstring& caCertFilePath /*optional: enable certificate validation*/, const IoCallback& notifyUnbufferedIO /*throw X*/); //throw SysError, X HttpInputStream sendHttpPost(const Zstring& url, const std::string& postBuf, const std::string& contentType, const Zstring& userAgent, - const Zstring* caCertFilePath /*optional: enable certificate validation*/, + const Zstring& caCertFilePath /*optional: enable certificate validation*/, const IoCallback& notifyUnbufferedIO /*throw X*/); //throw SysError, X bool internetIsAlive(); //noexcept -- cgit