Servers - Kestrel - HTTP/2

In this article

Advanced HTTP/2 features

Trailers

if (httpContext.Response.SupportsTrailers())
{
    httpContext.Response.DeclareTrailer("trailername");	

    // Write body
    httpContext.Response.WriteAsync("Hello world");

    httpContext.Response.AppendTrailer("trailername", "TrailerValue");
}

Reset

var resetFeature = httpContext.Features.Get<IHttpResetFeature>();
resetFeature.Reset(errorCode: 2);

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