开发者

The missing HTTP Verbs in MVC

开发者 https://www.devze.com 2023-04-02 06:45 出处:网络
I\'m trying to create a simple CalDav server using ASP.NET MVC 3, but the lack of the missing HTTP Verbs got me confused.

I'm trying to create a simple CalDav server using ASP.NET MVC 3, but the lack of the missing HTTP Verbs got me confused.

How can I add them and use them? Maybe I could create an ActionFilter for each one of the missing native ones...

RFC 4791 says that a CalDav protocol can use all of this verbs

OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, COPY, MOVE, PROPFIND, PROPPATCH, LOCK, UNLOCK, REPORT, ACL

In Bold are shown the native MCV3 verbs, and Italic the ones I want to implement in order to create a simple CalDav (will be open source on GIT, using D开发者_Go百科Day.iCal Library but I just need to start) :)

Is there anything that I can't find out there available?


Have a look at the AcceptVerbsAttribute. It takes a string array which I would imagine you could supply the ones you are looking for.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号