public WebApiRequest AddHeader(string key, string value) { Contract.Requires(!string.IsNullOrWhiteSpace(key), "The key cannot be null or empty."); Contract.Requires(!string.IsNullOrWhiteSpace(value), "The value cannot be null or empty."); headers.Add(key, value); return this; }