Compartilhar via


HeaderValueMatcher Class

An optional field under "Rewrite Action". It lets you capture and modify the value(s) of a specific header when multiple headers with the same name exist. Currently supported for Set-Cookie Response header only. For more details, visit https://aka.ms/appgwheadercrud.

Inheritance
azure.mgmt.network._serialization.Model
HeaderValueMatcher

Constructor

HeaderValueMatcher(*, pattern: str | None = None, ignore_case: bool | None = None, negate: bool | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
pattern
str

The pattern, either fixed string or regular expression, that evaluates if a header value should be selected for rewrite.

ignore_case

Setting this parameter to truth value with force the pattern to do a case in-sensitive comparison.

negate

Setting this value as truth will force to check the negation of the condition given by the user in the pattern field.

Variables

Name Description
pattern
str

The pattern, either fixed string or regular expression, that evaluates if a header value should be selected for rewrite.

ignore_case

Setting this parameter to truth value with force the pattern to do a case in-sensitive comparison.

negate

Setting this value as truth will force to check the negation of the condition given by the user in the pattern field.