MCPcopy Create free account
hub / github.com/dgrr/http2 / defaults

Method defaults

server.go:27–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25}
26
27func (sc *ServerConfig) defaults() {
28 if sc.PingInterval == 0 {
29 sc.PingInterval = time.Second * 10
30 }
31
32 if sc.MaxConcurrentStreams <= 0 {
33 sc.MaxConcurrentStreams = 1024
34 }
35}
36
37// Server defines an HTTP/2 entity that can handle HTTP/2 connections.
38type Server struct {

Callers 2

getConnFunction · 0.80
ConfigureServerFunction · 0.80

Calls

no outgoing calls

Tested by 1

getConnFunction · 0.64