Click or drag to resize
IRequest Interface
The interface for objects that describe an incoming request.

Namespace: VirtualRadar.Interface.WebServer
Assembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public interface IRequest

The IRequest type exposes the following members.

Properties
  NameDescription
Public propertyContentLength64
Gets the number of bytes of the content exposed by InputStream.
Public propertyCookies
Gets the cookies on the request.
Public propertyCorsOrigin
Gets the CORS origin.
Public propertyFormValues
Gets the values sent in the body of a POST request.
Public propertyHeaders
Gets a collection of the headers that were sent with the request.
Public propertyHttpMethod
Gets the HTTP method used in the request.
Public propertyInputStream
Gets a stream that exposes the body of post requests.
Public propertyIsLocal
Gets a value indicating that the request came from the local computer.
Public propertyIsValidCorsRequest
Gets or sets a value indicating that the web site has detected a valid CORS request and wants the response to include the correct headers if the request is successful.
Public propertyLocalEndPoint
Gets the address that the Internet request was sent to.
Public propertyMaximumPostBodySize
Gets or sets the maximum post body size.
Public propertyRawUrl
Gets the URL from the root of the site.
Public propertyRemoteEndPoint
Gets the address that the Internet request originated from.
Public propertyUrl
Gets the URL of the request.
Public propertyUserAgent
Gets the user-agent as reported by the client browser.
Public propertyUserHostName
Gets the user hostname, the hostname that the browser originally requested. For requests coming through port forwarding this will be the address that the browser requested and not necessarily the true address of the site.
Top
Methods
  NameDescription
Public methodReadBodyAsString
Returns the body as a single string.
Top
See Also