Advtools.AdvInterceptor.Interceptor.WriteResponseHeaders C# (CSharp) 메소드

WriteResponseHeaders() 개인적인 메소드

private WriteResponseHeaders ( IResponse originalResponse, HttpWebResponse response ) : void
originalResponse IResponse
response System.Net.HttpWebResponse
리턴 void
        private void WriteResponseHeaders(IResponse originalResponse, HttpWebResponse response)
        {
            foreach(string headerName in response.Headers.AllKeys)
            {
                if(IsNotSettableHeader(headerName))
                    continue;

                /*IHeader header = originalResponse.Headers[headerName];
                if(header != null)
                    header.HeaderValue = ProcessResponseValue(response.Headers[headerName]);
                else*/
                    originalResponse.Add(new StringHeader(headerName, ProcessResponseValue(response.Headers[headerName])));
            }
        }