Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

YarpRouteMatch

Struct
📦 Aspire.Hosting.Yarp v17.0.0

Represents route match criteria for a YARP route.

type YarpRouteMatch struct {
Path *string `json:"Path"`
Methods []string `json:"Methods"`
Hosts []string `json:"Hosts"`
Headers []*YarpRouteHeaderMatch `json:"Headers"`
QueryParameters []*YarpRouteQueryParameterMatch `json:"QueryParameters"`
}

Fields

Path*string
Gets or sets the path pattern to match.
Methods[]string
Gets or sets the HTTP methods to match.
Hosts[]string
Gets or sets the host headers to match.
Headers[]*YarpRouteHeaderMatch
Gets or sets the header match criteria.
QueryParameters[]*YarpRouteQueryParameterMatch
Gets or sets the query parameter match criteria.