isAllHTTP returns true if all sb keys explicitly specify the http:// scheme
()
| 623 | // isAllHTTP returns true if all sb keys explicitly specify |
| 624 | // the http:// scheme |
| 625 | func (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. |
| 632 | type Positional string |