Share via


RequireHttpsAttribute.HandleNonHttpsRequest(AuthorizationContext) Method

Definition

Handles unsecured HTTP requests that are sent to the action method.

protected virtual void HandleNonHttpsRequest (System.Web.Mvc.AuthorizationContext filterContext);
abstract member HandleNonHttpsRequest : System.Web.Mvc.AuthorizationContext -> unit
override this.HandleNonHttpsRequest : System.Web.Mvc.AuthorizationContext -> unit
Protected Overridable Sub HandleNonHttpsRequest (filterContext As AuthorizationContext)

Parameters

filterContext
AuthorizationContext

An object that encapsulates information that is required in order to use the RequireHttpsAttribute attribute.

Exceptions

The HTTP request contains an invalid transfer method override. All GET requests are considered invalid.

Applies to