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

GetKeyValue() private method

Returns the zero node string of a key existing in the collection. Return empty string if key is not defined.
private GetKeyValue ( NameValueCollection httpHeaders, string keyName ) : string
httpHeaders System.Collections.Specialized.NameValueCollection
keyName string
return string
        private string GetKeyValue(NameValueCollection httpHeaders, string keyName)
        {
            string retVal = "";
            if (httpHeaders[keyName] != null)
            {
                string[] keyValues = httpHeaders.GetValues(keyName);
                retVal = keyValues[0];
            }

            return retVal;
        }