Click or drag to resize
IRequest Interface
Defines implementation capable of reading the HTTP values sent by a client during a Web request.

Namespace: CMS.Base.Internal
Assembly: CMS.Base (in CMS.Base.dll) Version: 13.0.131
Syntax
C#
public interface IRequest

The IRequest type exposes the following members.

Properties
  NameDescription
Public propertyAppRelativeCurrentExecutionFilePath
The portion of the request path that identifies the requested resource.
Public propertyCookies
Gets the collection of cookies that were sent by the client.
Public propertyForm
Gets the form collection.
Public propertyHeaders
Gets the collection of HTTP headers that were sent by the client.
Public propertyHttpMethod
Gets the HTTP data-transfer method (such as GET, POST, or HEAD) that was used by the client.
Public propertyInputStream
Gets the contents of the incoming HTTP entity body.
Public propertyIsSecureConnection
Gets a value that indicates whether the HTTP connection uses secure sockets (HTTPS protocol).
Public propertyQueryString
Gets the collection of HTTP query-string variables.
Public propertyRawUrl
The raw URL of the current request.
Public propertyRequestContext
Gets the information about an HTTP request that matches a defined route.
Public propertyUrl
Gets information about the URL of the current request.
Public propertyUrlReferrer
Gets information about the URL of the client request that linked to the current URL.
Public propertyUserAgent
Gets the complete user-agent string of the client.
Public propertyUserHostAddress
Gets the IP host address of the client.
Public propertyUserLanguages
Gets a sorted array of client language preferences.
Top
Methods
  NameDescription
Public methodGetServerVariableHttpOriginalUrl
Returns a value of a server variable 'HTTP_X_ORIGINAL_URL'.
Public methodReadRequestBodyAsString
Reads the body of the request and returns text representation of it. Then sets position of the request stream back to start.
Public methodReadRequestBodyAsStringAsync
Reads the body of the request asynchronously and returns text representation of it. Then sets position of the request stream back to start.
Top
Extension Methods
  NameDescription
Public Extension MethodGetEffectiveUrl
Returns effective URL with correct port number based on IsSSL property for Url property.
(Defined by HttpRequestExtensions.)
Top
See Also