public static bool IsRestricted (string headerName, bool response) { if (String.IsNullOrEmpty (headerName)) throw new ArgumentNullException ("headerName"); if (!IsHeaderName (headerName)) throw new ArgumentException ("Invalid character in header"); if (response) return restricted_response.ContainsKey (headerName); return restricted.ContainsKey (headerName); }