File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ public virtual Dictionary<string, string> DeserializeResponseHeaders(HttpRespons
64
64
65
65
public class Client : DynamicObject
66
66
{
67
- private static HttpClient _httpClient = new HttpClient ( ) ;
68
67
public string Host ;
69
68
public Dictionary < string , string > RequestHeaders ;
70
69
public string Version ;
@@ -183,29 +182,6 @@ private Client BuildClient(string name = null)
183
182
184
183
}
185
184
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
-
209
185
/// <summary>
210
186
/// Add the authorization header, override to customize
211
187
/// </summary>
You can’t perform that action at this time.
0 commit comments