Understanding of practice usage of ASP.NET 5 Middleware

This great article explains things about "ASP.NET 5 Middleware, Or Where Has My HttpModule Gone?" http://ift.tt/1GRKA70


But it is still unclear about when and why we have to use ASP.NET 5 Middleware.


Can anyone explain it and provide real life examples of its usage?