mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-03-20 06:53:30 +00:00
Watch out! Skins!
This commit is contained in:
16
src/platform/HttpClient.h
Normal file
16
src/platform/HttpClient.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef HTTPCLIENT_H__
|
||||
#define HTTPCLIENT_H__
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace HttpClient {
|
||||
|
||||
/// Download the given URL into "outBody".
|
||||
/// Returns true if the download completed successfully (HTTP 200) and the body is in outBody.
|
||||
/// This function supports plain HTTP only (no TLS). It will follow up to 3 redirects.
|
||||
bool download(const std::string& url, std::vector<unsigned char>& outBody);
|
||||
|
||||
} // namespace HttpClient
|
||||
|
||||
#endif /* HTTPCLIENT_H__ */
|
||||
Reference in New Issue
Block a user