Servers - Kestrel - HTTP/3

In this article

Important Apps configured to take advantage of HTTP/3 should be designed to also support HTTP/1.1 and HTTP/2.

HTTP/3 requirements

Windows

Linux

macOS

Getting started

var builder = WebApplication.CreateBuilder(args);

builder.WebHost.ConfigureKestrel((context, options) =>
{
    options.ListenAnyIP(5001, listenOptions =>
    {
        listenOptions.Protocols = HttpProtocols.Http1AndHttp2AndHttp3;
        listenOptions.UseHttps();
    });
});

Alt-svc

Localhost testing

HTTP/3 benefits

Ref: Use HTTP/3 with the ASP.NET Core Kestrel web server