private static bool ContainsInRestricted(string name, bool response) { HttpHeaderInfo httpHeaderInfo; return(WebHeaderCollection.TryGetHeaderInfo(name, out httpHeaderInfo) && httpHeaderInfo.IsRestricted(response)); }
internal static bool IsMultiValue(string headerName, bool response) { HttpHeaderInfo httpHeaderInfo; return(!headerName.IsNullOrEmpty() && WebHeaderCollection.TryGetHeaderInfo(headerName, out httpHeaderInfo) && httpHeaderInfo.IsMultiValue(response)); }
private static HttpHeaderType CheckHeaderType(string name) { HttpHeaderInfo httpHeaderInfo; return(WebHeaderCollection.TryGetHeaderInfo(name, out httpHeaderInfo) ? ((!httpHeaderInfo.IsRequest || httpHeaderInfo.IsResponse) ? ((httpHeaderInfo.IsRequest || !httpHeaderInfo.IsResponse) ? HttpHeaderType.Unspecified : HttpHeaderType.Response) : HttpHeaderType.Request) : HttpHeaderType.Unspecified); }