checkHeaderType() private static method

private static checkHeaderType ( string name ) : HttpHeaderType
name string
return HttpHeaderType
コード例 #1
0
        private void doWithCheckingState(Action <string, string> action, string name, string value, bool setState)
        {
            HttpHeaderType httpHeaderType = WebHeaderCollection.checkHeaderType(name);

            if (httpHeaderType == HttpHeaderType.Request)
            {
                this.doWithCheckingState(action, name, value, false, setState);
            }
            else if (httpHeaderType != HttpHeaderType.Response)
            {
                action(name, value);
            }
            else
            {
                this.doWithCheckingState(action, name, value, true, setState);
            }
        }