What is HttpHandler class in mvc? [Resolved]

Posted by Kumarkrishna184 under ASP.NET MVC on 3/9/2016 | Points: 10 | Views : 1690 | Status : [Member] | Replies : 1
What is HttpHandler class in mvc?When do we use it?

Thanks and Regards,
Krishna Kumar


Posted by: Rajnilari2015 on: 3/10/2016 [Member] [Microsoft_MVP] [MVP] Platinum | Points: 50


What is HttpHandler class in mvc?

A HTTP handler is the process that runs in response to a request made to an Web application which can be an Asp.net Web APS or Asp.net MVC. We can think of it as an endpoint through which the request/response mechanism will pass through between as browser and Web Server like IIS/Apache Tomcat etc.

When do we use it?

Going ahead with Http Handler ensures more control over the request/response pattern since programatically we can intercept the request/response for specific content types which on the other hand brings more security.

How to use it? (not asked)

Here is an example for a Http Handler for image (http://patrickdesjardins.com/blog/how-to-create-a-httphandler-with-asp-mvc ).

Hope this will be helpful.

Thanks & Regards,
RNA Team

Kumarkrishna184, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response