/// <summary> /// Creates an appropriatly configured HttpClient that will be used in communicating with the /// Spring Cloud Configuration Server /// </summary> /// <param name="settings">the settings used in configuring the HttpClient</param> /// <returns>The HttpClient used by the provider</returns> protected static HttpClient GetHttpClient(ConfigServerClientSettings settings) { return(HttpClientHelper.GetHttpClient(settings.ValidateCertificates, settings.Timeout)); }
/// <summary> /// Encode the username password for a http request /// </summary> /// <param name="user">the username</param> /// <param name="password">the password</param> /// <returns>Encoded user + password</returns> protected internal string GetEncoded(string user, string password) { return(HttpClientHelper.GetEncodedUserPassword(user, password)); }