.NET Core | Kestrel
ASP.NET Core applications are no longer tied to IIS. The applications are embedded with a built-in, lightweight web server* called Kestrel.
* Web server
The term web server can refer to hardware or software, or both of them working together.
On the hardware side, a web server is a computer that stores web server software and a website’s component files (for example, HTML documents, images, CSS stylesheets, and JavaScript files). A web server connects to the Internet and supports physical data interchange with other devices connected to the web.
On the software side, a web server includes several parts that control how web users access hosted files. At a minimum, this is an HTTP server. An HTTP server is software that understands URLs (web addresses) and HTTP (the protocol your browser uses to view webpages). An HTTP server can be accessed through the domain names of the websites it stores, and it delivers the content of these hosted websites to the end user’s device.
Practice
After Creating a .net Core Web Application , you can find this Line in Program.cs:
And This metohd (WebApplication.CreateBuilder) is responsible to call UseKestrel internally.
And when we run the command app.Run it will start listening for HTTP requests.