Microsoft.Protocols.TestTools.StackSdk.BranchCache.Pccrtp.PccrtpResponse.DecodeHttpHeader C# (CSharp) Method

DecodeHttpHeader() public method

Decode the struct of HTTP response header.
public DecodeHttpHeader ( WebResponse response ) : void
response System.Net.WebResponse Indicates the HTTP response.
return void
        public void DecodeHttpHeader(WebResponse response)
        {
            Dictionary<string, string> tempHeaders = new Dictionary<string, string>();
            for (int i = 0; i < response.Headers.Count; i++)
            {
                tempHeaders.Add(response.Headers.Keys[i], response.Headers[i]);
            }

            this.httpHeader = tempHeaders;
        }