Home

envoy.config.route.v3.HeaderMatcher

Example

Disclaimer: The example is meant to show what methods are available on the object and does not necessarily constitute working code.
local types = import 'types.libsonnet';

types.envoy.config.route.v3.HeaderMatcher
.withContainsMatch('string')
.withExactMatch('string')
.withInvertMatch(false)
.withName('string')
.withPrefixMatch('string')
.withPresentMatch(false)
.withRangeMatch(types.envoy.type.v3.Int64Range)
.withSafeRegexMatch(types.envoy.type.matcher.v3.RegexMatcher)
.withStringMatch(types.envoy.type.matcher.v3.StringMatcher)
.withSuffixMatch('string')
.withTreatMissingHeaderAsEmpty(false)
._validate()

Fields

Name Type One-of group Required Constraints
contains_match string header_match_specifier   {"String_":{"WellKnown":null,"min_len":1}}
exact_match string header_match_specifier  
invert_match bool  
name string   {"String_":{"WellKnown":{"WellKnownRegex":1},"min_len":1,"strict":false}}
prefix_match string header_match_specifier   {"String_":{"WellKnown":null,"min_len":1}}
present_match bool header_match_specifier  
range_match envoy.type.v3.Int64Range header_match_specifier  
safe_regex_match envoy.type.matcher.v3.RegexMatcher header_match_specifier  
string_match envoy.type.matcher.v3.StringMatcher header_match_specifier  
suffix_match string header_match_specifier   {"String_":{"WellKnown":null,"min_len":1}}
treat_missing_header_as_empty bool