MCPcopy
hub / github.com/caddyserver/caddy / protocolsWithDefaults

Method protocolsWithDefaults

modules/caddyhttp/server.go:929–934  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

927}
928
929func (s *Server) protocolsWithDefaults() []string {
930 if len(s.Protocols) == 0 {
931 return defaultProtocols
932 }
933 return s.Protocols
934}
935
936func (s *Server) listenerProtocolsWithDefaults(lnProtocols []string) []string {
937 serverProtocols := s.protocolsWithDefaults()

Callers 3

protocolMethod · 0.95
ProvisionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected