Table of Contents

Interface IRequest

Namespace
Dynamicweb.Environment
Assembly
Dynamicweb.Environment.dll
Interface IRequest is an abstraction of HttpRequest. Exposes HTTP values sent by a client during a Web request.
public interface IRequest
Extension Methods

Properties

ContentEncoding

Gets or sets the content encoding.
Encoding ContentEncoding { get; set; }

Property Value

Encoding
The content encoding.

Cookies

Gets the cookies.
ICookieCollection Cookies { get; }

Property Value

ICookieCollection
The cookies.

Form

Gets the form.
NameValueCollection Form { get; }

Property Value

NameValueCollection
The form.

Headers

Gets the headers.
NameValueCollection Headers { get; }

Property Value

NameValueCollection
The headers.

HttpMethod

Gets the HTTP method.
string HttpMethod { get; }

Property Value

string
The HTTP method.

InputStream

Gets the input stream.
Stream InputStream { get; }

Property Value

Stream
The input stream.

IsSecureConnection

Gets a value indicating whether this instance is secure connection.
bool IsSecureConnection { get; }

Property Value

bool
true if this instance is secure connection; otherwise, false.

this[string]

Gets the string with the specified key.
string this[string key] { get; }

Parameters

key string
The key.

Property Value

string
System.String.

Params

Gets the parameters.
NameValueCollection Params { get; }

Property Value

NameValueCollection
The parameters.

Path

Gets the path.
string Path { get; }

Property Value

string
The path.

QueryString

Gets the query string.
NameValueCollection QueryString { get; }

Property Value

NameValueCollection
The query string.

RawUrl

Gets the raw URL.
string RawUrl { get; }

Property Value

string
The raw URL.

RequestType

Gets the type of the request.
string RequestType { get; }

Property Value

string
The type of the request.

ServerVariables

Gets the server variables.
NameValueCollection ServerVariables { get; }

Property Value

NameValueCollection
The server variables.

Url

Gets the URL.
Uri Url { get; }

Property Value

Uri
The URL.

UrlReferrer

Gets the URL referrer.
Uri UrlReferrer { get; }

Property Value

Uri
The URL referrer.

UserAgent

Gets the user agent.
string UserAgent { get; }

Property Value

string
The user agent.

UserHostAddress

Gets the user host address.
string UserHostAddress { get; }

Property Value

string
The user host address.

UserLanguages

Gets the user languages.
string[] UserLanguages { get; }

Property Value

string[]
The user languages.

Methods

IsValid()

Returns true if the request is valid.
bool IsValid()

Returns

bool
true if this instance is valid; otherwise, false.
To top