summaryrefslogtreecommitdiff
path: root/service/http/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'service/http/config.go')
-rw-r--r--service/http/config.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/service/http/config.go b/service/http/config.go
index c2b11c8d..ff15e83e 100644
--- a/service/http/config.go
+++ b/service/http/config.go
@@ -49,6 +49,9 @@ type HTTP2Config struct {
// Enable or disable HTTP/2 extension, default enable.
Enabled bool
+ // H2C enables HTTP/2 over TCP
+ H2C bool
+
// MaxConcurrentStreams defaults to 128.
MaxConcurrentStreams uint32
}
@@ -91,6 +94,11 @@ func (c *Config) EnableHTTP2() bool {
return c.HTTP2.Enabled
}
+// EnableH2С when HTTP/2 extension must be enabled on TCP.
+func (c *Config) EnableH2C() bool {
+ return c.HTTP2.H2C
+}
+
// EnableFCGI is true when FastCGI server must be enabled.
func (c *Config) EnableFCGI() bool {
return c.FCGI.Address != ""