private static getHeaderInfo ( string name ) : WebSocketSharp.Net.HttpHeaderInfo | ||
name | string | |
리턴 | WebSocketSharp.Net.HttpHeaderInfo |
internal static bool IsMultiValue(string headerName, bool response) { bool flag; if ((headerName == null ? false : headerName.Length != 0)) { HttpHeaderInfo headerInfo = WebHeaderCollection.getHeaderInfo(headerName); flag = (headerInfo == null ? false : headerInfo.IsMultiValue(response)); } else { flag = false; } return(flag); }
private static HttpHeaderType checkHeaderType(string name) { HttpHeaderType httpHeaderType; HttpHeaderInfo headerInfo = WebHeaderCollection.getHeaderInfo(name); if (headerInfo == null) { httpHeaderType = HttpHeaderType.Unspecified; } else if (!headerInfo.IsRequest || headerInfo.IsResponse) { httpHeaderType = (headerInfo.IsRequest || !headerInfo.IsResponse ? HttpHeaderType.Unspecified : HttpHeaderType.Response); } else { httpHeaderType = HttpHeaderType.Request; } return(httpHeaderType); }
private static bool isRestricted(string name, bool response) { HttpHeaderInfo headerInfo = WebHeaderCollection.getHeaderInfo(name); return(headerInfo == null ? false : headerInfo.IsRestricted(response)); }