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

Method hasTLSClientAuth

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

Source from the content-addressed store, hash-verified

618}
619
620func (s *Server) hasTLSClientAuth() bool {
621 return slices.ContainsFunc(s.TLSConnPolicies, func(cp *caddytls.ConnectionPolicy) bool {
622 return cp.ClientAuthentication != nil && cp.ClientAuthentication.Active()
623 })
624}
625
626// findLastRouteWithHostMatcher returns the index of the last route
627// in the server which has a host matcher. Used during Automatic HTTPS

Callers 1

ProvisionMethod · 0.80

Calls 1

ActiveMethod · 0.80

Tested by

no test coverage detected