ContainsKey() 공개 메소드

public ContainsKey ( string key ) : bool
key string
리턴 bool
예제 #1
0
        public dynamic[] Call(IDictionary<string, dynamic> environment)
        {
            var response = _app.Call(environment);
            var headers = new HeaderHash(response[1]);

            if (!headers.ContainsKey("Content-Type") || headers["Content-Type"] == null)
            {
                headers["Content-Type"] = _contentType;
            }

            return new[] {response[0], headers, response[2]};
        }