Microsoft.Protocols.TestSuites.MS_WDVMODUU.S03_PropFindExtension.ConstructHttpHeaders C# (CSharp) Method

ConstructHttpHeaders() protected static method

Construct the HTTP Headers and values that is used in HTTP PROPFIND method request, set the value of "Depth" header as the input parameter "depthValue".
protected static ConstructHttpHeaders ( string depthValue ) : NameValueCollection
depthValue string The value of depth header
return System.Collections.Specialized.NameValueCollection
        protected static NameValueCollection ConstructHttpHeaders(string depthValue)
        {
            NameValueCollection headersCollection = new NameValueCollection();
            headersCollection.Clear();
            headersCollection.Add("Depth", depthValue);
            headersCollection.Add("Cache-Control", "no-cache");
            headersCollection.Add("ContentType", "text/xml");
            headersCollection.Add("Pragma", "no-cache");
            headersCollection.Add("ProtocolVersion", "HTTP/1.1");
            return headersCollection;
        }