HeaderValueMatcher Class

Definition

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.

public class HeaderValueMatcher : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Network.Models.HeaderValueMatcher>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Network.Models.HeaderValueMatcher>
type HeaderValueMatcher = class
    interface IJsonModel<HeaderValueMatcher>
    interface IPersistableModel<HeaderValueMatcher>
Public Class HeaderValueMatcher
Implements IJsonModel(Of HeaderValueMatcher), IPersistableModel(Of HeaderValueMatcher)
Inheritance
HeaderValueMatcher
Implements

Constructors

HeaderValueMatcher()

Initializes a new instance of HeaderValueMatcher.

Properties

IgnoreCase

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.

Pattern

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

Explicit Interface Implementations

IJsonModel<HeaderValueMatcher>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<HeaderValueMatcher>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<HeaderValueMatcher>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<HeaderValueMatcher>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<HeaderValueMatcher>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to