public RestClient(RestClientHandler handler, ClientConfiguration clientConfiguration) { this.httpClient = new HttpClient(handler); this.httpClient.Timeout = TimeSpan.FromMilliseconds(clientConfiguration.TimeoutMillis); this.httpClient.MaxResponseContentBufferSize = clientConfiguration.ResponseContentBufferBytes; this.httpClient.DefaultRequestHeaders.ExpectContinue = true; }
public RestClient(RestClientHandler handler, ClientConfiguration clientConfiguration) { this.httpClient = new HttpClient(handler); this.httpClient.Timeout = TimeSpan.FromMilliseconds(clientConfiguration.TimeoutMillis); this.httpClient.MaxResponseContentBufferSize = clientConfiguration.ResponseContentBufferBytes; }
public RestClient(RestClientHandler handler) { this.httpClient = new HttpClient(handler); }