Remove HTTP functionality

It wasn't used so it can be removed.
This commit is contained in:
Markus Mäkelä
2018-10-02 13:55:51 +03:00
parent 3daa0cd931
commit 8b9fdaa0cb
9 changed files with 3 additions and 161 deletions

View File

@ -655,26 +655,4 @@ uint64_t get_byteN(const uint8_t* ptr, int bytes);
*/
uint8_t* set_byteN(uint8_t* ptr, uint64_t value, int bytes);
namespace http
{
struct Result
{
int code; // HTTP response code
std::string raw_body; // Raw response body
std::unique_ptr<json_t> body; // JSON form of the body if it was valid JSON
std::unordered_map<std::string, std::string> headers; // Headers attached to the response
};
/**
* Do a HTTP GET
*
* @param url URL to use
* @param user Username to use, optional
* @param passwor Password for the user, optional
*
* @return A Result
*/
Result get(const std::string& url, const std::string& user = "", const std::string& password = "");
}
}