Http Handler vs Http Module in Asp.Net


Http Handler

  • An http handler returns a response to a request that is identified by a file name extension. i.e; .aspx (page handler) .
  • It uses IHttpHandler Interface.
  • It is used for rss feeds, image server etc.

Http Modules

  • An http module is invoked for all types of requests and responses.
  • It uses IHttpModule Interface.
  • it is used for security, logging and custom headers/footers etc.