pub fn authorization_header(
oauth_token: &str,
username: &str,
password: &str,
) -> Option<String>The Authorization header to send: Bearer <token> when an OAuth token is set, otherwise Basic with the credentials when the username or the password is set, and no header at all when neither is.
The credentials are encoded as UTF-8.