Table of Contents

Interface IRequest

Namespace
Dynamicweb.Environment
Assembly
Dynamicweb.Core.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.

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.

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

GetCookie(string)

Gets the Cookie with the specified name.

Cookie? GetCookie(string name)

Parameters

name string

The cookie name.

Returns

Cookie

A cookie with the specified name, if found; Otherwise, null.

GetCookies()

Gets the cookies.

IEnumerable<Cookie> GetCookies()

Returns

IEnumerable<Cookie>

The cookies.

IsValid()

Returns true if the request is valid.

bool IsValid()

Returns

bool

true if this instance is valid; otherwise, false.

To top