Skip to content

Commit 68cb61f

Browse files
chore: remove unused function (#99)
1 parent 4523112 commit 68cb61f

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

CSharpHTTPClient/Client.cs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ public virtual Dictionary<string, string> DeserializeResponseHeaders(HttpRespons
6464

6565
public class Client : DynamicObject
6666
{
67-
private static HttpClient _httpClient = new HttpClient();
6867
public string Host;
6968
public Dictionary <string,string> RequestHeaders;
7069
public string Version;
@@ -183,29 +182,6 @@ private Client BuildClient(string name = null)
183182

184183
}
185184

186-
/// Factory method to return the right HttpClient settings.
187-
/// </summary>
188-
/// <returns>Instance of HttpClient</returns>
189-
private HttpClient BuildHttpClient()
190-
{
191-
// Add the WebProxy if set
192-
if (WebProxy != null)
193-
{
194-
var httpClientHandler = new HttpClientHandler()
195-
{
196-
Proxy = WebProxy,
197-
PreAuthenticate = true,
198-
UseDefaultCredentials = false,
199-
};
200-
201-
return new HttpClient(httpClientHandler);
202-
}
203-
204-
return _httpClient;
205-
}
206-
207-
/// <summary>
208-
209185
/// <summary>
210186
/// Add the authorization header, override to customize
211187
/// </summary>

0 commit comments

Comments
 (0)