DefaultHttpContext DefaultHttpContext DefaultHttpContext Class

Definition

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

Constructors

DefaultHttpContext() DefaultHttpContext() DefaultHttpContext()
DefaultHttpContext(IFeatureCollection) DefaultHttpContext(IFeatureCollection) DefaultHttpContext(IFeatureCollection)

Properties

Authentication Authentication 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.

Connection Connection Connection
Features Features Features
Items Items Items
Request Request Request
RequestAborted RequestAborted RequestAborted
RequestServices RequestServices RequestServices
Response Response Response
Session Session Session
TraceIdentifier TraceIdentifier TraceIdentifier
User User User
WebSockets WebSockets WebSockets

Methods

Abort() Abort() Abort()
Initialize(IFeatureCollection) Initialize(IFeatureCollection) Initialize(IFeatureCollection)
InitializeAuthenticationManager() InitializeAuthenticationManager() InitializeAuthenticationManager()
InitializeConnectionInfo() InitializeConnectionInfo() InitializeConnectionInfo()
InitializeHttpRequest() InitializeHttpRequest() InitializeHttpRequest()
InitializeHttpResponse() InitializeHttpResponse() InitializeHttpResponse()
InitializeWebSocketManager() InitializeWebSocketManager() InitializeWebSocketManager()
Uninitialize() Uninitialize() Uninitialize()
UninitializeAuthenticationManager(AuthenticationManager) UninitializeAuthenticationManager(AuthenticationManager) UninitializeAuthenticationManager(AuthenticationManager)
UninitializeConnectionInfo(ConnectionInfo) UninitializeConnectionInfo(ConnectionInfo) UninitializeConnectionInfo(ConnectionInfo)
UninitializeHttpRequest(HttpRequest) UninitializeHttpRequest(HttpRequest) UninitializeHttpRequest(HttpRequest)
UninitializeHttpResponse(HttpResponse) UninitializeHttpResponse(HttpResponse) UninitializeHttpResponse(HttpResponse)
UninitializeWebSocketManager(WebSocketManager) UninitializeWebSocketManager(WebSocketManager) UninitializeWebSocketManager(WebSocketManager)

Extension Methods

AuthenticateAsync(HttpContext) AuthenticateAsync(HttpContext) AuthenticateAsync(HttpContext)

Extension method for authenticate using the DefaultAuthenticateScheme scheme.

AuthenticateAsync(HttpContext, String) AuthenticateAsync(HttpContext, String) AuthenticateAsync(HttpContext, String)

Extension method for authenticate.

ChallengeAsync(HttpContext) ChallengeAsync(HttpContext) ChallengeAsync(HttpContext)

Extension method for authenticate using the DefaultChallengeScheme scheme.

ChallengeAsync(HttpContext, AuthenticationProperties) ChallengeAsync(HttpContext, AuthenticationProperties) ChallengeAsync(HttpContext, AuthenticationProperties)

Extension method for authenticate using the DefaultChallengeScheme scheme.

ChallengeAsync(HttpContext, String) ChallengeAsync(HttpContext, String) ChallengeAsync(HttpContext, String)

Extension method for Challenge.

ChallengeAsync(HttpContext, String, AuthenticationProperties) ChallengeAsync(HttpContext, String, AuthenticationProperties) ChallengeAsync(HttpContext, String, AuthenticationProperties)

Extension method for Challenge.

ForbidAsync(HttpContext) ForbidAsync(HttpContext) ForbidAsync(HttpContext)

Extension method for Forbid using the DefaultForbidScheme scheme..

ForbidAsync(HttpContext, AuthenticationProperties) ForbidAsync(HttpContext, AuthenticationProperties) ForbidAsync(HttpContext, AuthenticationProperties)

Extension method for Forbid.

ForbidAsync(HttpContext, String) ForbidAsync(HttpContext, String) ForbidAsync(HttpContext, String)

Extension method for Forbid.

ForbidAsync(HttpContext, String, AuthenticationProperties) ForbidAsync(HttpContext, String, AuthenticationProperties) ForbidAsync(HttpContext, String, AuthenticationProperties)

Extension method for Forbid.

GetTokenAsync(HttpContext, String) GetTokenAsync(HttpContext, String) GetTokenAsync(HttpContext, String)

Extension method for getting the value of an authentication token.

GetTokenAsync(HttpContext, String, String) GetTokenAsync(HttpContext, String, String) GetTokenAsync(HttpContext, String, String)

Extension method for getting the value of an authentication token.

SignInAsync(HttpContext, ClaimsPrincipal) SignInAsync(HttpContext, ClaimsPrincipal) SignInAsync(HttpContext, ClaimsPrincipal)

Extension method for SignIn using the DefaultSignInScheme.

SignInAsync(HttpContext, ClaimsPrincipal, AuthenticationProperties) SignInAsync(HttpContext, ClaimsPrincipal, AuthenticationProperties) SignInAsync(HttpContext, ClaimsPrincipal, AuthenticationProperties)

Extension method for SignIn using the DefaultSignInScheme.

SignInAsync(HttpContext, String, ClaimsPrincipal) SignInAsync(HttpContext, String, ClaimsPrincipal) SignInAsync(HttpContext, String, ClaimsPrincipal)

Extension method for SignIn.

SignInAsync(HttpContext, String, ClaimsPrincipal, AuthenticationProperties) SignInAsync(HttpContext, String, ClaimsPrincipal, AuthenticationProperties) SignInAsync(HttpContext, String, ClaimsPrincipal, AuthenticationProperties)

Extension method for SignIn.

SignOutAsync(HttpContext) SignOutAsync(HttpContext) SignOutAsync(HttpContext)

Extension method for SignOut using the DefaultSignOutScheme.

SignOutAsync(HttpContext, AuthenticationProperties) SignOutAsync(HttpContext, AuthenticationProperties) SignOutAsync(HttpContext, AuthenticationProperties)

Extension method for SignOut using the DefaultSignOutScheme.

SignOutAsync(HttpContext, String) SignOutAsync(HttpContext, String) SignOutAsync(HttpContext, String)

Extension method for SignOut.

SignOutAsync(HttpContext, String, AuthenticationProperties) SignOutAsync(HttpContext, String, AuthenticationProperties) SignOutAsync(HttpContext, String, AuthenticationProperties)

Extension method for SignOut.

GetHttpRequestMessage(HttpContext) GetHttpRequestMessage(HttpContext) GetHttpRequestMessage(HttpContext)
GetRouteData(HttpContext) GetRouteData(HttpContext) GetRouteData(HttpContext)

Gets the RouteData associated with the provided httpContext.

GetRouteValue(HttpContext, String) GetRouteValue(HttpContext, String) GetRouteValue(HttpContext, String)

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

GetIISServerVariable(HttpContext, String) GetIISServerVariable(HttpContext, String) GetIISServerVariable(HttpContext, String)

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

Applies to