pub fn format_authorization_by_basic( username: &str, password: &str, ) -> Result<String>
format authorization header by basic auth.
If input username is empty, function will return an unexpected error.