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

Method isAllHTTP

caddyconfig/httpcaddyfile/directives.go:625–629  ·  view source on GitHub ↗

isAllHTTP returns true if all sb keys explicitly specify the http:// scheme

()

Source from the content-addressed store, hash-verified

623// isAllHTTP returns true if all sb keys explicitly specify
624// the http:// scheme
625func (sb serverBlock) isAllHTTP() bool {
626 return !slices.ContainsFunc(sb.parsedKeys, func(addr Address) bool {
627 return addr.Scheme != "http"
628 })
629}
630
631// Positional are the supported modes for ordering directives.
632type Positional string

Callers 1

buildTLSAppMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected