Class StringMatch
Describes how to match a given string in HTTP headers. Match is case-sensitive.
Namespace: Neon.Kube.Resources.Istio
Assembly: Neon.Kube.Resources.dll
Syntax
public class StringMatch
Constructors
StringMatch()
Initializes a new instance of the StringMatch class.
Declaration
public StringMatch()
Properties
Exact
exact string match
Declaration
[JsonProperty(PropertyName = "exact", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public string Exact { get; set; }
Property Value
Type | Description |
---|---|
string |
Prefix
prefix-based match
Declaration
[JsonProperty(PropertyName = "prefix", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public string Prefix { get; set; }
Property Value
Type | Description |
---|---|
string |
Regex
RE2 style regex-based match (https://github.com/google/re2/wiki/Syntax).
Declaration
[JsonProperty(PropertyName = "regex", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public string Regex { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
Validate()
Validate the object.
Declaration
public virtual void Validate()
Exceptions
Type | Condition |
---|---|
ValidationException | Thrown if validation fails. |