/// <summary> /// Adds default headers to the RestClient. Used on every request made by this client instance. /// </summary> /// <param name="restClient">The IRestClient instance</param> /// <param name="headers">Dictionary containing the Names and Values of the headers to add</param> /// <returns></returns> public static IRestClient AddDefaultHeaders(this IRestClient restClient, Dictionary <string, string> headers) { foreach (var header in headers) { restClient.AddOrUpdateDefaultParameter(new Parameter(header.Key, header.Value, ParameterType.HttpHeader)); } return(restClient); }