File: Startup.cs
Web Access
Project: src\src\Servers\Kestrel\samples\Http2SampleApp\Http2SampleApp.csproj (Http2SampleApp)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
 
namespace Http2SampleApp;
 
public class Startup
{
    public void ConfigureServices(IServiceCollection services)
    {
    }
 
    public void Configure(IApplicationBuilder app)
    {
        app.UseTimingMiddleware();
        app.Run(context =>
        {
            return context.Response.WriteAsync("Hello World! " + context.Request.Protocol);
        });
    }
}