Sets Basic HTTP authentication parameters for the server instance.
MCO_RET mcorest_set_basic_auth(mcorest_h rest,
const char *realm,
const char *username,
const char *password);
rest
realm
username
password
This function sets the Basic HTTP authentication parameters for the server instance. All arguments must be non-NULL, and the
usernameandpasswordstrings cannot be empty. Repeated calls to this function will overwrite previously set parameters.