HttpRequestWrapper Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Encapsulates the HTTP intrinsic object that enables ASP.NET to read the HTTP values that are sent by a client during a Web request.
public ref class HttpRequestWrapper : System::Web::HttpRequestBase
public class HttpRequestWrapper : System.Web.HttpRequestBase
type HttpRequestWrapper = class
inherit HttpRequestBase
Public Class HttpRequestWrapper
Inherits HttpRequestBase
- Inheritance
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.
Http |
Initializes a new instance of the HttpRequestWrapper class by using the specified request object. |
Accept |
Gets an array of client-supported MIME accept types. |
AnonymousID |
Gets the anonymous identifier for the user, if it is available. |
Application |
Gets the virtual path of the root of the ASP.NET application on the server. |
App |
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"). |
Browser |
Gets information about the requesting client's browser capabilities. |
Client |
Gets the current request's client security certificate. |
Content |
Gets or sets the character set of the data that was provided by the client. |
Content |
Gets the length, in bytes, of content that was sent by the client. |
Content |
Gets or sets the MIME content type of the request. |
Cookies |
Gets the collection of cookies that were sent by the client. |
Current |
Gets the virtual path of the current request. |
Current |
Gets the extension of the file name that is specified in the CurrentExecutionFilePath property. |
Current |
When implemented in a derived class, gets the extension of the file name that is specified in the CurrentExecutionFilePath property. (Inherited from HttpRequestBase) |
File |
Gets the virtual path of the current request. |
Files |
Gets the collection of files that were uploaded by the client, in multipart MIME format. |
Filter |
Gets or sets the filter to use when the current input stream is being read. |
Form |
Gets the collection of form variables that were sent by the client. |
Headers |
Gets the collection of HTTP headers that were sent by the client. |
Http |
Gets the ChannelBinding object of the current HttpWorkerRequest instance. |
Http |
When overridden in a derived class, gets the ChannelBinding object of the current HttpWorkerRequest instance. (Inherited from HttpRequestBase) |
Http |
Gets the HTTP data-transfer method (such as |
Input |
Gets the contents of the incoming HTTP entity body. |
Is |
Gets a value that indicates whether the request has been authenticated. |
Is |
Gets a value that indicates whether the request is from the local computer. |
Is |
Gets a value that indicates whether the HTTP connection uses secure sockets (HTTPS protocol). |
Item[String] |
Gets the specified object from the Cookies, Form, QueryString, or ServerVariables collections. |
Logon |
Gets the WindowsIdentity type for the current user. |
Params |
Gets a combined collection of QueryString, Form, ServerVariables, and Cookies items. |
Path |
Gets the virtual path of the current request. |
Path |
Gets additional path information for a resource that has a URL extension. |
Physical |
Gets the physical file-system path of the current application's root directory. |
Physical |
Gets the physical file-system path of the requested resource. |
Query |
Gets the collection of HTTP query-string variables. |
Raw |
Gets the complete URL of the current request. |
Read |
Gets a value that indicates whether the request entity body has been read, and if so, how it was read. |
Read |
When implemented in a derived class, gets a value that indicates whether the request entity body has been read, and if so, how it was read. (Inherited from HttpRequestBase) |
Request |
Gets the RequestContext instance of the current request. |
Request |
When overridden in a derived class, gets the RequestContext instance of the current request. (Inherited from HttpRequestBase) |
Request |
Gets or sets the HTTP data-transfer method ( |
Server |
Gets a collection of Web server variables. |
Timed |
Gets a CancellationToken object that is tripped when a request times out. |
Timed |
When implemented in a derived class, gets a CancellationToken object that is tripped when a request times out. (Inherited from HttpRequestBase) |
Tls |
Gets the Tls token binding information. |
Tls |
Gets or sets the token binding information for this instance. (Inherited from HttpRequestBase) |
Total |
Gets the number of bytes in the current input stream. |
Unvalidated |
Gets an access to HTTP request values without triggering request validation. |
Unvalidated |
When implemented in a derived class, provides access to HTTP request values without triggering request validation. (Inherited from HttpRequestBase) |
Url |
Gets information about the URL of the current request. |
Url |
Gets information about the URL of the client request that linked to the current URL. |
User |
Gets the complete user-agent string of the client. |
User |
Gets the IP host address of the client. |
User |
Gets the DNS name of the client. |
User |
Gets a sorted array of client language preferences. |
Abort() |
Forcibly terminates the underlying TCP connection, causing any outstanding I/O to fail. |
Abort() |
Forcibly terminates the underlying TCP connection, causing any outstanding I/O to fail. (Inherited from HttpRequestBase) |
Binary |
Performs a binary read of a specified number of bytes from the current input stream. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Gets a Stream object that can be used to read the incoming HTTP entity body. |
Get |
When implemented in a derived class, gets a Stream object that can be used to read the incoming HTTP entity body. (Inherited from HttpRequestBase) |
Get |
Gets a Stream object that can be used to read the incoming HTTP entity body. |
Get |
When implemented in a derived class, 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. (Inherited from HttpRequestBase) |
Get |
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. |
Get |
When implemented in a derived class, 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. (Inherited from HttpRequestBase) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Insert |
Provides with a copy of the HTTP request entity body to IIS. |
Insert |
When implemented in a derived class, provides a copy of the HTTP request entity body to IIS. (Inherited from HttpRequestBase) |
Insert |
Provides IIS with a copy of the HTTP request entity body and with information about the request entity object. |
Insert |
When implemented in a derived class, provides IIS with a copy of the HTTP request entity body and with information about the request entity object. (Inherited from HttpRequestBase) |
Map |
Maps an incoming image-field form parameter to appropriate x-coordinate and y-coordinate values. |
Map |
Maps the specified virtual path to a physical path on the server. |
Map |
Maps the specified virtual path to a physical path on the server. |
Map |
Maps an incoming image field form parameter into appropriate x and y coordinate values. |
Map |
Maps an incoming image field form parameter into appropriate x and y coordinate values. (Inherited from HttpRequestBase) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
Save |
Saves an HTTP request to disk. |
To |
Returns a string that represents the current object. (Inherited from Object) |
Validate |
Causes validation to occur for the collections that are accessed through the Cookies, Form, and QueryString properties. |
Producto | Versiones |
---|---|
.NET Framework | 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Comentarios de .NET
.NET es un proyecto de código abierto. Seleccione un vínculo para proporcionar comentarios: