HttpRequestWrapper.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / Orcas / RTM / ndp / fx / src / xsp / System / Web / Extensions / ui / HttpRequestWrapper.cs / 2 / HttpRequestWrapper.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

using System; 
using System.Collections.Specialized; 
using System.Diagnostics;
using System.Web; 

namespace System.Web.UI {
    internal sealed class HttpRequestWrapper : IHttpRequest {
        private HttpRequest _httpRequest; 

        public HttpRequestWrapper(HttpRequest httpRequest) { 
            Debug.Assert(httpRequest != null); 
            _httpRequest = httpRequest;
        } 

        #region IHttpRequest Members

        IHttpBrowserCapabilities IHttpRequest.Browser { 
            get {
                return new HttpBrowserCapabilitiesWrapper(_httpRequest.Browser); 
            } 
        }
 
        string IHttpRequest.Path {
            get {
                return _httpRequest.Path;
            } 
        }
 
        string IHttpRequest.FilePath { 
            get {
                return _httpRequest.FilePath; 
            }
        }

        NameValueCollection IHttpRequest.Headers { 
            get {
                return _httpRequest.Headers; 
            } 
        }
 
        NameValueCollection IHttpRequest.QueryString {
            get {
                return _httpRequest.QueryString;
            } 
        }
        #endregion 
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK