Interface TrustedProxies

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface TrustedProxies
  • Field Details

  • Method Details

    • isTrusted

      boolean isTrusted(String host)
    • from

      static TrustedProxies from(String trustedProxies)
    • filterHeaders

      static org.springframework.http.HttpHeaders filterHeaders(org.springframework.http.HttpHeaders input, org.springframework.web.server.ServerWebExchange exchange, Predicate<String> inclusionPredicate)
      Utility method to filter headers based on a predicate.
      Parameters:
      input - HttpHeaders to filter.
      exchange - ServerWebExchange.
      inclusionPredicate - the predicate to test for header inclusion.
      Returns:
      filtered HttpHeaders.