Add credentials for remove REST API calls
The base URL and credentials used for REST API calls can now be defined in the [maxscale] section. This allows encrypted passwords to be used.
This commit is contained in:
@ -662,10 +662,12 @@ struct Result
|
||||
* 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);
|
||||
Result get(const std::string& url, const std::string& user = "", const std::string& password = "");
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user