Is there any support in the asp.net mvc 4 web api beta for the HTTP verb 'OPTIONS'? The framework does not automatically send a response. I think you have to do this by yourselve. But is there a method like: GetVerbsForUrl("http://server.com/api/values"); ?
Asked
Active
Viewed 1,793 times
1 Answers
1
There is a feature called ApiExplorer which can provide Web Api descriptions. You can see more details here:

frennky
- 12,581
- 10
- 47
- 63
-
This feature is not on the beta, it's on the RC though. – carlosfigueira Jun 04 '12 at 20:29
-
Yea, i know this feature. It sounds like there is no build-in support for the options verb. I have to do it by myself. Does the ApiExplorer uses reflection? (I am asking due to performance) – user437899 Jun 11 '12 at 06:23
-
I implemented a generic solution using Http message handlers and Api Explorer http://www.jefclaes.be/2012/09/supporting-options-verb-in-aspnet-web.html – JefClaes Sep 02 '12 at 16:52