Skip to main content
Version: 3.5

HttpRequest

Namespace: Wisej.Core

Assembly: Wisej.Framework (3.5.0.0)

Encapsulates HTTP-request information for an ASP.NET operation.

public class HttpRequest

Constructors

Instance memberHttpRequest(context, request)

Constructs an new instance HttpRequest initialized from the original HttpRequest.

NameTypeDescription
contextHttpContextThe current HttpContext.
requestHttpRequestOriginal HttpRequest object.

Properties

Instance memberContentLength

Int64: Returns the length, in bytes, of content sent by the client.

Instance memberContentType

String: Returns the MIME content type of the incoming request.

Instance memberContext

HttpContext: Returns the current HttpContext.

Instance memberFiles

HttpFileCollection: Returns the collection of HttpPostedFile uploaded by the client.

Instance memberForm

NameValueCollection: Returns the collection of form values posted with the HTTP request.

Instance memberHeaders

NameValueCollection: Returns a collection of HTTP headers.

Instance memberInputStream

Stream: Returns the contents of the incoming HTTP entity body.

Instance memberIsLocal

Boolean: Returns whether the request is from the local computer.

Instance memberItem(key)

String: Returns the specified value from the QueryString or Form collections.

Instance memberPath

String: Returns the virtual path of the current request.

Instance memberQueryString

NameValueCollection: Returns the collection of arguments specified in the application URL.

Instance memberRequestType

String: Returns the HTTP data transfer method (GET or POST) used by the client.

Instance memberServerVariables

NameValueCollection: Returns the collection of server variables..

Instance memberTotalBytes

Int64: Returns the number of bytes in the current InputStream.

Instance memberUrl

Uri: Returns the URL of the current request.

Instance memberUrlReferrer

Uri: Returns information about the URL of the client's previous request that linked to the current URL.

Instance memberUserAgent

String: Returns the raw user agent string of the client browser.

Instance memberUserHostAddress

String: Returns the IP host address of the remote client.

Instance memberUserHostName

String: Returns the DNS name of the remote client.

Instance memberUserLanguages

String[]: Returns a sorted string array of client language preferences.