http2 property

bool http2
final

Let the same port also speak HTTP/2. HTTP/1.1 clients keep working on that port. Without tls it is HTTP/2 over plain TCP (h2c): use it behind a proxy that speaks h2c to the app (Caddy, nginx), eg. for gRPC. With tls, browsers and gRPC clients use HTTP/2 with no proxy. Native server only. Default false.

Implementation

final bool http2;