diff --git a/CSharpHTTPClient/Client.cs b/CSharpHTTPClient/Client.cs index 94d954c..c72a619 100644 --- a/CSharpHTTPClient/Client.cs +++ b/CSharpHTTPClient/Client.cs @@ -64,7 +64,6 @@ public virtual Dictionary DeserializeResponseHeaders(HttpRespons public class Client : DynamicObject { - private static HttpClient _httpClient = new HttpClient(); public string Host; public Dictionary RequestHeaders; public string Version; @@ -183,29 +182,6 @@ private Client BuildClient(string name = null) } - /// Factory method to return the right HttpClient settings. - /// - /// Instance of HttpClient - private HttpClient BuildHttpClient() - { - // Add the WebProxy if set - if (WebProxy != null) - { - var httpClientHandler = new HttpClientHandler() - { - Proxy = WebProxy, - PreAuthenticate = true, - UseDefaultCredentials = false, - }; - - return new HttpClient(httpClientHandler); - } - - return _httpClient; - } - - /// - /// /// Add the authorization header, override to customize ///