Class HttpContext
Encapsulates all HTTP-specific information about an individual HTTP request.
Inheritance
System.Object
HttpContext
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Web.Http.Abstractions
Assembly: Terrasoft.Web.Http.Abstractions.dll
Syntax
public abstract class HttpContext
Constructors
HttpContext()
Declaration
protected HttpContext()
Properties
Application
Gets the HttpApplicationState object for the current HTTP request.
Declaration
public abstract HttpApplicationState Application { get; }
Property Value
Type | Description |
---|---|
HttpApplicationState |
Current
Gets the HttpContext object for the current HTTP request.
Declaration
public static HttpContext Current { get; }
Property Value
Type | Description |
---|---|
HttpContext |
HttpContextAccessor
Initializes the HttpContext abstraction with a concrete implementation provider.
Declaration
public static IHttpContextAccessor HttpContextAccessor { get; }
Property Value
Type | Description |
---|---|
IHttpContextAccessor |
Items
Gets a key/value collection that can be used to organize and share data within the scope of this request.
Declaration
public abstract HttpItemCollection Items { get; }
Property Value
Type | Description |
---|---|
HttpItemCollection |
Request
Gets the HttpRequest object for the current HTTP request.
Declaration
public abstract HttpRequest Request { get; }
Property Value
Type | Description |
---|---|
HttpRequest |
Response
Gets the HttpResponse object for the current HTTP response.
Declaration
public abstract HttpResponse Response { get; }
Property Value
Type | Description |
---|---|
HttpResponse |
Session
Gets the HttpSessionState object for the current HTTP request.
Declaration
public abstract HttpSessionState Session { get; }
Property Value
Type | Description |
---|---|
HttpSessionState |
User
Gets or sets security information for the current HTTP request.
Declaration
public abstract IPrincipal User { get; set; }
Property Value
Type | Description |
---|---|
System.Security.Principal.IPrincipal |