RequireHttpsAttribute.HandleNonHttpsRequest(AuthorizationContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.