HttpRequestWrapper Class
Encapsulates the HTTP intrinsic object that enables ASP.NET to read the HTTP values that are sent by a client during a Web request.
Assembly: System.Web (in System.Web.dll)
| Name | Description | |
|---|---|---|
![]() | HttpRequestWrapper(HttpRequest) | Initializes a new instance of the HttpRequestWrapper class by using the specified request object. |
| Name | Description | |
|---|---|---|
![]() | AcceptTypes | Gets an array of client-supported MIME accept types.(Overrides HttpRequestBase.AcceptTypes.) |
![]() | AnonymousID | Gets the anonymous identifier for the user, if it is available.(Overrides HttpRequestBase.AnonymousID.) |
![]() | ApplicationPath | Gets the virtual path of the root of the ASP.NET application on the server.(Overrides HttpRequestBase.ApplicationPath.) |
![]() | AppRelativeCurrentExecutionFilePath | Gets the virtual path of the application root and makes it relative by using the tilde (~) notation for the application root (as in "~/page.aspx").(Overrides HttpRequestBase.AppRelativeCurrentExecutionFilePath.) |
![]() | Browser | Gets information about the requesting client's browser capabilities.(Overrides HttpRequestBase.Browser.) |
![]() | ClientCertificate | Gets the current request's client security certificate.(Overrides HttpRequestBase.ClientCertificate.) |
![]() | ContentEncoding | Gets or sets the character set of the data that was provided by the client.(Overrides HttpRequestBase.ContentEncoding.) |
![]() | ContentLength | Gets the length, in bytes, of content that was sent by the client.(Overrides HttpRequestBase.ContentLength.) |
![]() | ContentType | Gets or sets the MIME content type of the request.(Overrides HttpRequestBase.ContentType.) |
![]() | Cookies | Gets the collection of cookies that were sent by the client.(Overrides HttpRequestBase.Cookies.) |
![]() | CurrentExecutionFilePath | Gets the virtual path of the current request.(Overrides HttpRequestBase.CurrentExecutionFilePath.) |
![]() | CurrentExecutionFilePathExtension | Gets the extension of the file name that is specified in the CurrentExecutionFilePath property.(Overrides HttpRequestBase.CurrentExecutionFilePathExtension.) |
![]() | FilePath | Gets the virtual path of the current request.(Overrides HttpRequestBase.FilePath.) |
![]() | Files | Gets the collection of files that were uploaded by the client, in multipart MIME format.(Overrides HttpRequestBase.Files.) |
![]() | Filter | Gets or sets the filter to use when the current input stream is being read.(Overrides HttpRequestBase.Filter.) |
![]() | Form | Gets the collection of form variables that were sent by the client.(Overrides HttpRequestBase.Form.) |
![]() | Headers | Gets the collection of HTTP headers that were sent by the client.(Overrides HttpRequestBase.Headers.) |
![]() | HttpChannelBinding | Gets the ChannelBinding object of the current HttpWorkerRequest instance.(Overrides HttpRequestBase.HttpChannelBinding.) |
![]() | HttpMethod | Gets the HTTP data-transfer method (such as GET, POST, or HEAD) that was used by the client.(Overrides HttpRequestBase.HttpMethod.) |
![]() | InputStream | Gets the contents of the incoming HTTP entity body.(Overrides HttpRequestBase.InputStream.) |
![]() | IsAuthenticated | Gets a value that indicates whether the request has been authenticated.(Overrides HttpRequestBase.IsAuthenticated.) |
![]() | IsLocal | Gets a value that indicates whether the request is from the local computer.(Overrides HttpRequestBase.IsLocal.) |
![]() | IsSecureConnection | Gets a value that indicates whether the HTTP connection uses secure sockets (HTTPS protocol).(Overrides HttpRequestBase.IsSecureConnection.) |
![]() | Item(String) | Gets the specified object from the Cookies, Form, QueryString, or ServerVariables collections.(Overrides HttpRequestBase.Item(String).) |
![]() | LogonUserIdentity | Gets the WindowsIdentity type for the current user.(Overrides HttpRequestBase.LogonUserIdentity.) |
![]() | Params | Gets a combined collection of QueryString, Form, ServerVariables, and Cookies items.(Overrides HttpRequestBase.Params.) |
![]() | Path | Gets the virtual path of the current request.(Overrides HttpRequestBase.Path.) |
![]() | PathInfo | Gets additional path information for a resource that has a URL extension.(Overrides HttpRequestBase.PathInfo.) |
![]() | PhysicalApplicationPath | Gets the physical file-system path of the current application's root directory.(Overrides HttpRequestBase.PhysicalApplicationPath.) |
![]() | PhysicalPath | Gets the physical file-system path of the requested resource.(Overrides HttpRequestBase.PhysicalPath.) |
![]() | QueryString | Gets the collection of HTTP query-string variables.(Overrides HttpRequestBase.QueryString.) |
![]() | RawUrl | Gets the complete URL of the current request.(Overrides HttpRequestBase.RawUrl.) |
![]() | ReadEntityBodyMode | Gets a value that indicates whether the request entity body has been read, and if so, how it was read.(Overrides HttpRequestBase.ReadEntityBodyMode.) |
![]() | RequestContext | Gets the RequestContext instance of the current request.(Overrides HttpRequestBase.RequestContext.) |
![]() | RequestType | Gets or sets the HTTP data-transfer method (GET or POST) that was used by the client.(Overrides HttpRequestBase.RequestType.) |
![]() | ServerVariables | Gets a collection of Web server variables.(Overrides HttpRequestBase.ServerVariables.) |
![]() | TimedOutToken | Gets a CancellationToken object that is tripped when a request times out.(Overrides HttpRequestBase.TimedOutToken.) |
![]() | TlsTokenBindingInfo | Gets the Tls token binding information.(Overrides HttpRequestBase.TlsTokenBindingInfo.) |
![]() | TotalBytes | Gets the number of bytes in the current input stream.(Overrides HttpRequestBase.TotalBytes.) |
![]() | Unvalidated | Gets an access to HTTP request values without triggering request validation.(Overrides HttpRequestBase.Unvalidated.) |
![]() | Url | Gets information about the URL of the current request.(Overrides HttpRequestBase.Url.) |
![]() | UrlReferrer | Gets information about the URL of the client request that linked to the current URL.(Overrides HttpRequestBase.UrlReferrer.) |
![]() | UserAgent | Gets the complete user-agent string of the client.(Overrides HttpRequestBase.UserAgent.) |
![]() | UserHostAddress | Gets the IP host address of the client.(Overrides HttpRequestBase.UserHostAddress.) |
![]() | UserHostName | Gets the DNS name of the client.(Overrides HttpRequestBase.UserHostName.) |
![]() | UserLanguages | Gets a sorted array of client language preferences.(Overrides HttpRequestBase.UserLanguages.) |
| Name | Description | |
|---|---|---|
![]() | Abort() | Forcibly terminates the underlying TCP connection, causing any outstanding I/O to fail.(Overrides HttpRequestBase.Abort().) |
![]() | BinaryRead(Int32) | Performs a binary read of a specified number of bytes from the current input stream.(Overrides HttpRequestBase.BinaryRead(Int32).) |
![]() | Equals(Object) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetBufferedInputStream() | (Overrides HttpRequestBase.GetBufferedInputStream().) |
![]() | GetBufferlessInputStream() | Gets a Stream object that can be used to read the incoming HTTP entity body.(Overrides HttpRequestBase.GetBufferlessInputStream().) |
![]() | GetBufferlessInputStream(Boolean) | Gets a Stream object that can be used to read the incoming HTTP entity body, , optionally disabling the request length limit that is set in the MaxRequestLength property.(Overrides HttpRequestBase.GetBufferlessInputStream(Boolean).) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | InsertEntityBody() | Provides with a copy of the HTTP request entity body to IIS.(Overrides HttpRequestBase.InsertEntityBody().) |
![]() | InsertEntityBody(Byte(), Int32, Int32) | Provides IIS with a copy of the HTTP request entity body and with information about the request entity object.(Overrides HttpRequestBase.InsertEntityBody(Byte(), Int32, Int32).) |
![]() | MapImageCoordinates(String) | Maps an incoming image-field form parameter to appropriate x-coordinate and y-coordinate values.(Overrides HttpRequestBase.MapImageCoordinates(String).) |
![]() | MapPath(String) | Maps the specified virtual path to a physical path on the server.(Overrides HttpRequestBase.MapPath(String).) |
![]() | MapPath(String, String, Boolean) | Maps the specified virtual path to a physical path on the server.(Overrides HttpRequestBase.MapPath(String, String, Boolean).) |
![]() | MapRawImageCoordinates(String) | Maps an incoming image field form parameter into appropriate x and y coordinate values.(Overrides HttpRequestBase.MapRawImageCoordinates(String).) |
![]() | MemberwiseClone() | |
![]() | SaveAs(String, Boolean) | Saves an HTTP request to disk.(Overrides HttpRequestBase.SaveAs(String, Boolean).) |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
![]() | ValidateInput() | Causes validation to occur for the collections that are accessed through the Cookies, Form, and QueryString properties.(Overrides HttpRequestBase.ValidateInput().) |
The HttpRequestWrapper class derives from the HttpRequestBase class and serves as a wrapper for the HttpRequest class. This class exposes the functionality of the HttpRequest class and exposes the HttpRequestBase type. The HttpRequestBase class enables you to replace the original implementation of the HttpRequest class in your application with a custom implementation, such as when you perform unit testing outside the ASP.NET pipeline.
Available since 3.5
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


