As opposed to HttpHandlers and HttpModules, middleware is created and used programmatically without a config file. We are now agnostic from IIS and System.Web.
Let's look at a few things about HttpHandlers and HttpModules:
- An HttpModule runs for each request before arriving at the handler that generates the response, and/or after it generates the response
- A Handler handles the request and generates the response for a given file extension