Table of Contents

Class HttpRequestContext

Namespace
System.Web.Http.Controllers
Assembly
System.Web.Http.dll

Represents the context associated with a request.

public class HttpRequestContext
Inheritance
HttpRequestContext
Inherited Members

Constructors

HttpRequestContext()

Initializes a new instance of the HttpRequestContext class.

public HttpRequestContext()

Properties

ClientCertificate

Gets or sets the client certificate.

public virtual X509Certificate2 ClientCertificate { get; set; }

Property Value

X509Certificate2

Returns X509Certificate2.

Configuration

Gets or sets the configuration.

public virtual HttpConfiguration Configuration { get; set; }

Property Value

HttpConfiguration

Returns HttpConfiguration.

IncludeErrorDetail

Gets or sets a value indicating whether error details, such as exception messages and stack traces, should be included in the response for this request.

public virtual bool IncludeErrorDetail { get; set; }

Property Value

bool

Returns bool.

IsLocal

Gets or sets a value indicating whether the request originates from a local address.

public virtual bool IsLocal { get; set; }

Property Value

bool

Returns bool.

Principal

.Gets or sets the principal

public virtual IPrincipal Principal { get; set; }

Property Value

IPrincipal

Returns IPrincipal.

RouteData

Gets or sets the route data.

public virtual IHttpRouteData RouteData { get; set; }

Property Value

IHttpRouteData

Returns IHttpRouteData.

Url

Gets or sets the factory used to generate URLs to other APIs.

public virtual UrlHelper Url { get; set; }

Property Value

UrlHelper

Returns UrlHelper.

VirtualPathRoot

Gets or sets the virtual path root.

public virtual string VirtualPathRoot { get; set; }

Property Value

string

Returns string.