Path: redb-route/redb.Route.Http.Hosting/HttpProtocol.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Http.Hosting/HttpProtocol.cs
----
namespace redb.Route.Http;
///
/// HTTP protocol version for the Kestrel host. Lives in the shared hosting assembly (kept in the
/// redb.Route.Http namespace for source compatibility) because both the server manager and the
/// HTTP connector's options reference it.
///
public enum HttpProtocol
{
/// HTTP/1.1 only.
Http1,
/// HTTP/2 only. Requires HTTPS on most clients.
Http2,
/// HTTP/1.1 and HTTP/2 (default). Negotiated via ALPN.
Http1And2,
/// HTTP/3 only (QUIC). Requires HTTPS.
Http3,
/// HTTP/1.1, HTTP/2, and HTTP/3.
Http1And2And3
}