HttpMethodRouteConstraint HttpMethodRouteConstraint HttpMethodRouteConstraint Class

Definition

Constrains the HTTP method of request or a route.

public class HttpMethodRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint
type HttpMethodRouteConstraint = class
    interface IRouteConstraint
    interface IParameterPolicy
Public Class HttpMethodRouteConstraint
Implements IRouteConstraint
Inheritance
HttpMethodRouteConstraintHttpMethodRouteConstraintHttpMethodRouteConstraint
Implements

Constructors

HttpMethodRouteConstraint(String[]) HttpMethodRouteConstraint(String[]) HttpMethodRouteConstraint(String[])

Creates a new instance of HttpMethodRouteConstraint that accepts the HTTP methods specified by allowedMethods.

Properties

AllowedMethods AllowedMethods AllowedMethods

Gets the HTTP methods allowed by the constraint.

Methods

Match(HttpContext, IRouter, String, RouteValueDictionary, RouteDirection) Match(HttpContext, IRouter, String, RouteValueDictionary, RouteDirection) Match(HttpContext, IRouter, String, RouteValueDictionary, RouteDirection)

Applies to