public RestClientMessageHandler(string baseURL, HttpClient httpClient, IRestClientSerializer serializer) { BaseURL = baseURL; _HttpClient = httpClient; _HttpClient.BaseAddress = new Uri(baseURL); _HttpClient.DefaultRequestHeaders.Accept.Clear(); _HttpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); _Serializer = serializer; }
public RestClientMessageHandler(string baseURL, IRestClientSerializer serializer) : this(baseURL, new HttpClient(), serializer) { _JwtToken = null; }