/// <summary> /// Clear all settings /// </summary> /// <returns></returns> public RestClient Clear() { QueryItems.Clear(); PathItems = StringVector.Empty; BaseAddress = null; return(this); }
/// <summary> /// Clear all settings /// </summary> /// <returns></returns> public RestClient Clear() { HeaderItems.Clear(); QueryItems.Clear(); PathItems = StringVector.Empty; AbsoluteUri = null; BaseAddress = null; return(this); }
public override void Intercept(HttpClient httpClient) { QueryItems.Clear(); QueryItems.Add(new KeyValuePair <string, string>("Accept", "application/json")); var sessionInfo = _sessionInfoHolder.SessionInfo; if (sessionInfo != null) { QueryItems.Add(new KeyValuePair <string, string>("Authorization", sessionInfo.ToString())); } base.Intercept(httpClient); }