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.
- Extension Methods
Properties
ContentEncoding
Gets or sets the content encoding.
Property Value
- Encoding
The content encoding.
Form
Gets the form.
Property Value
- Name
Value Collection The form.
Headers
Gets the headers.
Property Value
- Name
Value Collection The headers.
HttpMethod
Gets the HTTP method.
Property Value
- string
The HTTP method.
InputStream
Gets the input stream.
Property Value
- Stream
The input stream.
IsSecureConnection
Gets a value indicating whether this instance is secure connection.
Property Value
- bool
true
if this instance is secure connection; otherwise,false
.
this[string]
Gets the string with the specified key.
Parameters
key
stringThe key.
Property Value
- string
System.String.
Params
Gets the parameters.
Property Value
- Name
Value Collection The parameters.
Path
Gets the path.
Property Value
- string
The path.
QueryString
Gets the query string.
Property Value
- Name
Value Collection The query string.
RawUrl
Gets the raw URL.
Property Value
- string
The raw URL.
Url
Gets the URL.
Property Value
- Uri
The URL.
UrlReferrer
Gets the URL referrer.
Property Value
- Uri
The URL referrer.
UserAgent
Gets the user agent.
Property Value
- string
The user agent.
UserHostAddress
Gets the user host address.
Property Value
- string
The user host address.
UserLanguages
Gets the user languages.
Property Value
- string[]
The user languages.
Methods
GetCookie(string)
Gets the Cookie with the specified name.
Parameters
name
stringThe cookie name.
Returns
- Cookie
A cookie with the specified name, if found; Otherwise, null.
GetCookies()
Gets the cookies.
Returns
- IEnumerable<Cookie>
The cookies.
IsValid()
Returns true if the request is valid.
Returns
- bool
true
if this instance is valid; otherwise,false
.