HttpRequest

Wisej.Core.HttpRequest

Namespace: Wisej.Core

Assembly: Wisej.Framework (3.0.0.0)

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

public class HttpRequest

Constructors

HttpRequest(context, request)

Constructs an new instance HttpRequest initialized from the original HttpRequestarrow-up-right.

Name
Type
Description

Properties

ContentLength

Int64arrow-up-right: Returns the length, in bytes, of content sent by the client.

ContentType

Stringarrow-up-right: Returns the MIME content type of the incoming request.

Context

HttpContext: Returns the current HttpContext.

Files

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

Form

NameValueCollectionarrow-up-right: Returns the collection of form values posted with the HTTP request.

Headers

NameValueCollectionarrow-up-right: Returns a collection of HTTP headers.

InputStream

Streamarrow-up-right: Returns the contents of the incoming HTTP entity body.

IsLocal

Booleanarrow-up-right: Returns whether the request is from the local computer.

Item(key)

Stringarrow-up-right: Returns the specified value from the QueryString or Form collections.

Path

Stringarrow-up-right: Returns the virtual path of the current request.

QueryString

NameValueCollectionarrow-up-right: Returns the collection of arguments specified in the application URL.

RequestType

Stringarrow-up-right: Returns the HTTP data transfer method (GET or POST) used by the client.

ServerVariables

NameValueCollectionarrow-up-right: Returns the collection of server variables.arrow-up-right.

TotalBytes

Int64arrow-up-right: Returns the number of bytes in the current InputStream.

Url

Uriarrow-up-right: Returns the URL of the current request.

UrlReferrer

Uriarrow-up-right: Returns information about the URL of the client's previous request that linked to the current URL.

UserAgent

Stringarrow-up-right: Returns the raw user agent string of the client browser.

UserHostAddress

Stringarrow-up-right: Returns the IP host address of the remote client.

UserHostName

Stringarrow-up-right: Returns the DNS name of the remote client.

UserLanguages

String[]arrow-up-right: Returns a sorted string array of client language preferences.

Last updated

Was this helpful?