ASP.NET MVC: HttpHead action filter
HttpHead action filter specifies that, this action method should be only accessible via HTTP HEAD request. HttpHead action filter is new in MVC 4. HTTP HEAD request is similar to GET request but it instruct server to send only response header, and not whole response body.
Attribute Usage: Only method
Sample Code:
[HttpHead]
public ActionResult About()
{
return View();
}
Alike other action filter, We can’t access such method with other than HTTP HEAD verb.
Check out ASP.NET MVC: Action filter series post to read about other available action filters.
You can follow me on twitter for latest link and update on ASP.NET & MVC.