What are the ActionResult AcceptVerbsAttribute default HTTP methods?
asp.net-mvc
Solution
Without `AcceptVerbsAttribute` your `Action` will accept requests with any HTTP methods. BTW you can restrict HTTP methods in your RouteTable:
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = "" }, // Parameter defaults
new { HttpMethod = new HttpMethodConstraint(
new[] { "GET", "POST" }) } // Only GET or POST
);
Problem
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.