I know you can restrict which HTTP methods a particular ActionResult method responds to by adding an AcceptVerbsAttribute, e.g.
[AcceptVerbs(HttpVerbs.Get)]
public ActionResult Index() {
...
}
But I was wondering: which HTTP methods an ActionResult method will accept without an explicit [AcceptVerbs(…)] attribute?
I would presume it was GET, HEAD and POST but was just wanting to double-check.
Thanks.
Without
AcceptVerbsAttributeyourActionwill accept requests with any HTTP methods. BTW you can restrict HTTP methods in your RouteTable: