toHeaderStringValue method
Implementation
String toHeaderStringValue() {
if (github_client_auth_type == GithubClientAuthType.token) {
return "Bearer ${token_github}";
}
if (github_client_auth_type == GithubClientAuthType.usernameAndPassword) {
return "basic ${"${username_github}:${password_github}".general_lib_utils_encryptToBase64()}";
}
return "";
}