Remove HTTP functionality
It wasn't used so it can be removed.
This commit is contained in:
@ -338,15 +338,4 @@ MXS_MONITOR_API MonitorApi<MonitorInstance>::s_api =
|
||||
&MonitorApi<MonitorInstance>::diagnostics_json,
|
||||
};
|
||||
|
||||
/**
|
||||
* Get the master server of the remote monitor
|
||||
*
|
||||
* The `peer_hosts`, `peer_user` and `peer_password` parameters must have been defined for this
|
||||
* to work.
|
||||
*
|
||||
* @param name The name of the remote monitor
|
||||
*
|
||||
* @return The host and port of the monitor or an empty string and 0 if an error occurred
|
||||
*/
|
||||
std::pair<std::string, int> mon_get_external_master(const std::string& name);
|
||||
}
|
||||
|
@ -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 = "");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user