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

Function httpsRRALPNs

modules/caddyhttp/autohttps.go:577–589  ·  view source on GitHub ↗
(srv *Server)

Source from the content-addressed store, hash-verified

575}
576
577func httpsRRALPNs(srv *Server) []string {
578 alpn := make(map[string]struct{}, 3)
579 if srv.protocol("h3") {
580 alpn["h3"] = struct{}{}
581 }
582 if srv.protocol("h2") {
583 alpn["h2"] = struct{}{}
584 }
585 if srv.protocol("h1") {
586 alpn["http/1.1"] = struct{}{}
587 }
588 return caddytls.OrderedHTTPSRRALPN(alpn)
589}
590
591// createAutomationPolicies ensures that automated certificates for this
592// app are managed properly. This adds up to two automation policies:

Calls 2

OrderedHTTPSRRALPNFunction · 0.92
protocolMethod · 0.80