The Web API Request's Journey
ASP.Net Web API Flow ASP.NET Web API is a framework that makes it easy to build HTTP services that reach a broad range of clients, including browsers and mobile devices. ASP.NET Web API is an ideal platform for building RESTful applications on the .NET Framework. So HTTP is not just for serving up web pages. It is also a powerful platform for building APIs that expose services and data. Hosting Web API Web API can be hosted either on ASP.NET or you could write a Console App or a Windows Service yourself to self-host. Web API’s flexibility starts right at the core as to where it can be hosted. · ASP.NET Hosting : When hosted on ASP.NET, the lifecycle starts with the HttpControllerHandler which is an implementation of IHttpAsyncHandler and is responsible for passing requests into the HttpServer pipeline. · Self Hosting : When you are Self Hosting, the HttpServer pipel...