Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

YarpRouteHeaderMatch

Struct
📦 Aspire.Hosting.Yarp v17.0.0

Represents a header-based route match for a YARP route.

type YarpRouteHeaderMatch struct {
Name string `json:"Name"`
Values []string `json:"Values"`
IsCaseSensitive bool `json:"IsCaseSensitive"`
Mode HeaderMatchMode `json:"Mode"`
}

Fields

Namestring
Gets or sets the header name to match.
Values[]string
Gets or sets the header values to match.
IsCaseSensitivebool
Gets or sets a value indicating whether the header comparison is case-sensitive.
ModeHeaderMatchMode
Gets or sets the matching mode for the header comparison.