Interface FilterConfig


public interface FilterConfig
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    If enabled, headers are applied only when the response status code is in the 2xx range.
    Additional HTTP Headers always sent in the response
    A regular expression for the paths matching this configuration
    The HTTP methods for this path configuration
    Order in which this path config is applied.
  • Method Details

    • matches

      String matches()
      A regular expression for the paths matching this configuration
    • header

      @ConfigDocMapKey("header-name") Map<String,String> header()
      Additional HTTP Headers always sent in the response
    • methods

      Optional<List<String>> methods()
      The HTTP methods for this path configuration
    • order

      OptionalInt order()
      Order in which this path config is applied. Higher priority takes precedence
    • applyOnSuccess

      @WithDefault("false") boolean applyOnSuccess()
      If enabled, headers are applied only when the response status code is in the 2xx range. This is useful to avoid caching error responses at CDNs when using aggressive Cache-Control headers.