什么是控制器动作的默认行为没有打上AcceptVerbs,HTTPGET或HttpPost? [英] What is the default behaviour of a controller action not marked with AcceptVerbs, HttpGet or HttpPost?
本文介绍了什么是控制器动作的默认行为没有打上AcceptVerbs,HTTPGET或HttpPost?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我创建了一个控制器动作,不与 AcceptVerbs
, HttpPost
或 HTTPGET
。什么是默认的行为?
If I create a controller action and do not decorate it with AcceptVerbs
, HttpPost
or HttpGet
. What is the default behaviour?
是否采取行动允许任何接入方式或是否默认的 GET 的?
Does the action allow any access method or does it default to GET?
推荐答案
这是通过任何动词使用。
It's accessible via any verb.
这篇关于什么是控制器动作的默认行为没有打上AcceptVerbs,HTTPGET或HttpPost?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文