private boolean hostIsInAllowlist(final String hostHeader) {
    if (config.getHostsAllowlist().stream()
        .anyMatch(
            allowlistEntry ->
                allowlistEntry
                    .toLowerCase(Locale.ROOT)
                    .equals(hostHeader.toLowerCase(Locale.ROOT)))) {
      return true;
    } else {
      LOG.trace("Host not in allowlist: '{}'", hostHeader);
      return false;
    }
  }
Instantiates a new Metrics http service.

@param configuration the configuration
@param metricsSystem the metrics system
metrics/core/src/main/java/org/hyperledger/besu/metrics/prometheus/MetricsHttpService.java