BonCodeAJP13.ServerPackets.BonCodeAJP13ForwardRequest.KeyExists C# (CSharp) Method

KeyExists() private method

Check whether a key is defined in the Name Value collection
private KeyExists ( NameValueCollection httpHeaders, string keyName ) : bool
httpHeaders System.Collections.Specialized.NameValueCollection
keyName string
return bool
        private bool KeyExists(NameValueCollection httpHeaders, string keyName)
        {
            bool retVal = false;
            if (httpHeaders[keyName] != null)
            {
                retVal = true;
            }

            return retVal;
        }