public static IsRestricted ( string headerName, bool response ) : bool | ||
headerName | string | |
response | bool | |
return | bool |
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);
}
WebHeaderCollection.WebHeaderCollection::IsRestricted ( string headerName ) : bool |