Skip to main content
Version: 4.1

HttpRequest

Namespace: Wisej.Core

Assembly: Wisej.Framework (4.1.0.0)

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

public class HttpRequest

Constructors

Instance member HttpRequest(context, request)

Constructs an new instance HttpRequest initialized from the original HttpRequest.

NameTypeDescription
contextHttpContextThe current HttpContext.
requestHttpRequestOriginal HttpRequest object.

Properties

Instance member ContentLength

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

Instance member ContentType

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

Instance member Context

HttpContext: Returns the current HttpContext.

Instance member Files

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

Instance member Form

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

Instance member Headers

NameValueCollection: Returns a collection of HTTP headers.

Instance member InputStream

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

Instance member IsLocal

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

Instance member Item(key)

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

Instance member Path

String: Returns the virtual path of the current request.

Instance member QueryString

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

Instance member RequestType

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

Instance member ServerVariables

NameValueCollection: Returns the collection of server variables..

Instance member TotalBytes

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

Instance member Url

Uri: Returns the URL of the current request.

Instance member UrlReferrer

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

Instance member UserAgent

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

Instance member UserHostAddress

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

Instance member UserHostName

String: Returns the DNS name of the remote client.

Instance member UserLanguages

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