getHeaderInfo() private static méthode

private static getHeaderInfo ( string name ) : WebSocketSharp.Net.HttpHeaderInfo
name string
Résultat WebSocketSharp.Net.HttpHeaderInfo
Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        private static bool isRestricted(string name, bool response)
        {
            HttpHeaderInfo headerInfo = WebHeaderCollection.getHeaderInfo(name);

            return(headerInfo == null ? false : headerInfo.IsRestricted(response));
        }