Class HttpMethodAttribute

Assembly: redb.Route.Controllers.dll

Base attribute for HTTP method markers on controller actions.
These are route-table markers, not transport directives.

[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public abstract class HttpMethodAttribute : Attribute

Inheritance

Object→Attribute→HttpMethodAttribute

Derived

Properties

Method

HTTP method this action responds to.

public HttpMethodType Method { get; }

Template

Optional sub-template (e.g. "{id}").

public string? Template { get; }

Constructors