From a98326eb2954ac1e79f5eac28dbeab3ec15e047f Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Sat, 30 Jun 2018 12:43:08 +0200 Subject: 10.1 --- wx+/http.h | 49 ------------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100755 wx+/http.h (limited to 'wx+/http.h') diff --git a/wx+/http.h b/wx+/http.h deleted file mode 100755 index bbfa3a74..00000000 --- a/wx+/http.h +++ /dev/null @@ -1,49 +0,0 @@ -// ***************************************************************************** -// * This file is part of the FreeFileSync project. It is distributed under * -// * GNU General Public License: https://www.gnu.org/licenses/gpl-3.0 * -// * Copyright (C) Zenju (zenju AT freefilesync DOT org) - All Rights Reserved * -// ***************************************************************************** - -#ifndef HTTP_H_879083425703425702 -#define HTTP_H_879083425703425702 - -#include -#include - -namespace zen -{ -/* - TREAD-SAFETY - ------------ - Windows: WinInet-based => may be called from worker thread, supports HTTPS - Linux: wxWidgets-based => don't call from worker thread -*/ -class HttpInputStream -{ -public: - //support zen/serialize.h buffered input stream concept - size_t read(void* buffer, size_t bytesToRead); //throw SysError, X; return "bytesToRead" bytes unless end of stream! - std::string readAll(); //throw SysError, X - - size_t getBlockSize() const; - - class Impl; - HttpInputStream(std::unique_ptr&& pimpl); - HttpInputStream(HttpInputStream&&) = default; - ~HttpInputStream(); - -private: - std::unique_ptr pimpl_; -}; - - -HttpInputStream sendHttpGet (const std::wstring& url, const std::wstring& userAgent, const IOCallback& notifyUnbufferedIO); //throw SysError -HttpInputStream sendHttpPost(const std::wstring& url, const std::wstring& userAgent, const IOCallback& notifyUnbufferedIO, - const std::vector>& postParams); //throw SysError -bool internetIsAlive(); //noexcept - -std::string xWwwFormUrlEncode(const std::vector>& paramPairs); -std::vector> xWwwFormUrlDecode(const std::string& str); -} - -#endif //HTTP_H_879083425703425702 -- cgit