feat(server): add HTTP2 support in server configuration

This commit is contained in:
Hein
2026-06-30 11:33:31 +02:00
parent 3fec7b1a90
commit bbb2c6d127
2 changed files with 32 additions and 8 deletions
+4
View File
@@ -19,6 +19,10 @@ type Config struct {
// GZIP compression support
GZIP bool
// HTTP2 enables HTTP/2 with the Extended CONNECT protocol (RFC 8441) for WebSocket support.
// Requires TLS; pair with SSLCert/SSLKey, SelfSignedSSL, or AutoTLS.
HTTP2 bool
// TLS/HTTPS configuration options (mutually exclusive)
// Option 1: Provide certificate and key files directly
SSLCert string