DefaultHttpContext Class

Definition

public ref class DefaultHttpContext : Microsoft::AspNetCore::Http::HttpContext
public ref class DefaultHttpContext sealed : Microsoft::AspNetCore::Http::HttpContext
public class DefaultHttpContext : Microsoft.AspNetCore.Http.HttpContext
public sealed class DefaultHttpContext : Microsoft.AspNetCore.Http.HttpContext
type DefaultHttpContext = class
    inherit HttpContext
Public Class DefaultHttpContext
Inherits HttpContext
Public NotInheritable Class DefaultHttpContext
Inherits HttpContext
Inheritance
DefaultHttpContext

Constructors

DefaultHttpContext()
DefaultHttpContext(IFeatureCollection)

Properties

Authentication

This is obsolete and will be removed in a future version. The recommended alternative is to use Microsoft.AspNetCore.Authentication.AuthenticationHttpContextExtensions. See https://go.microsoft.com/fwlink/?linkid=845470.

Authentication

This is obsolete and will be removed in a future version. The recommended alternative is to use Microsoft.AspNetCore.Authentication.AuthenticationHttpContextExtensions. See https://go.microsoft.com/fwlink/?linkid=845470.

(Inherited from HttpContext)
Connection
Features
FormOptions
HttpContext
Items
Request
RequestAborted
RequestServices
Response
ServiceScopeFactory
Session
TraceIdentifier
User
WebSockets

Methods

Abort()
Initialize(IFeatureCollection)
Uninitialize()

Extension Methods

AuthenticateAsync(HttpContext)

Extension method for authenticate using the DefaultAuthenticateScheme scheme.

AuthenticateAsync(HttpContext, String)

Extension method for authenticate.

ChallengeAsync(HttpContext)

Extension method for authenticate using the DefaultChallengeScheme scheme.

ChallengeAsync(HttpContext, AuthenticationProperties)

Extension method for authenticate using the DefaultChallengeScheme scheme.

ChallengeAsync(HttpContext, String)

Extension method for Challenge.

ChallengeAsync(HttpContext, String, AuthenticationProperties)

Extension method for Challenge.

ForbidAsync(HttpContext)

Extension method for Forbid using the DefaultForbidScheme scheme..

ForbidAsync(HttpContext, AuthenticationProperties)

Extension method for Forbid.

ForbidAsync(HttpContext, String)

Extension method for Forbid.

ForbidAsync(HttpContext, String, AuthenticationProperties)

Extension method for Forbid.

GetTokenAsync(HttpContext, String)

Extension method for getting the value of an authentication token.

GetTokenAsync(HttpContext, String, String)

Extension method for getting the value of an authentication token.

SignInAsync(HttpContext, ClaimsPrincipal)

Extension method for SignIn using the DefaultSignInScheme.

SignInAsync(HttpContext, ClaimsPrincipal, AuthenticationProperties)

Extension method for SignIn using the DefaultSignInScheme.

SignInAsync(HttpContext, String, ClaimsPrincipal)

Extension method for SignIn.

SignInAsync(HttpContext, String, ClaimsPrincipal, AuthenticationProperties)

Extension method for SignIn.

SignOutAsync(HttpContext)

Extension method for SignOut using the DefaultSignOutScheme.

SignOutAsync(HttpContext, AuthenticationProperties)

Extension method for SignOut using the DefaultSignOutScheme.

SignOutAsync(HttpContext, String)

Extension method for SignOut.

SignOutAsync(HttpContext, String, AuthenticationProperties)

Extension method for SignOut.

GetEndpoint(HttpContext)

Extension method for getting the Endpoint for the current request.

SetEndpoint(HttpContext, Endpoint)

Extension method for setting the Endpoint for the current request.

GetServerVariable(HttpContext, String)

Gets the value of a server variable for the current request.

GetHttpRequestMessage(HttpContext)
GetRouteData(HttpContext)

Gets the RouteData associated with the provided httpContext.

GetRouteValue(HttpContext, String)

Gets a route value from Values associated with the provided httpContext.

GetIISServerVariable(HttpContext, String)

Gets the value of a server variable for the current request.

Applies to