liveBook · Manning

Kestrel

As explained in Building Web APIs with ASP.NET Core

Kestrel is an open-source, cross-platform, event-driven, asynchronous HTTP server implementation for ASP.NET Core.

Kestrel is ASP.NET Core’s open-source, cross-platform, event-driven, asynchronous HTTP server. In a Visual Studio project, selecting the project-named launch profile runs the board-game API with Kestrel. section 2.4.1

Configure Kestrel through the project’s launch settings:

Configure a tester profile

For the MyBGList API, assign TCP ports 55221 and 55222 to HTTP and HTTPS, select the Staging environment, and launch directly at the BoardGamesController Get() endpoint. Select Kestrel, start the application, and verify that the browser displays board-game JSON including MinPlayers and MaxPlayers. section 2.5 section 2.5.1 section 2.5.5

Figure 2.5 The Visual Studio Start button
02-05

Use the Visual Studio Start button to select the project profile corresponding to Kestrel. section 2.4.1

How Building Web APIs with ASP.NET Core covers it

How deep it goes
Defines Kestrel’s server role and launch configuration but does not descend into server internals.
Examples
Uses MyBGList tester settings, TCP ports 55221 and 55222, a BoardGames endpoint, and board-game JSON output.
What it assumes
Assumes a working ASP.NET Core project and Visual Studio while teaching server selection and launch-profile configuration.
What you can do after
Operate/configure Kestrel by selecting its profile, assigning ports, choosing an environment, and verifying the launched API response.
How it connects
Connects Kestrel with ASP.NET Core, Visual Studio, launchSettings.json, IIS Express, HTTP, HTTPS, and runtime environments.

Also explained in

Compare how 2 books explain Kestrel →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Building Web APIs with ASP.NET Core. The section links point to the parts of the book it draws on.