Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

GatewayPathMatchType

Enum
📦 Aspire.Hosting.Kubernetes v13.6.5-preview.1.26559.7

Specifies the type of path matching used in a Kubernetes Gateway API HTTPRoute rule. The values map directly to the matches[].path.type field defined by the Gateway API (see ) and are distinct from the Ingress-flavoured IngressPathType because the two specs use different vocabularies (Ingress: Prefix, Gateway: PathPrefix).

type GatewayPathMatchType string
const (
GatewayPathMatchTypePathPrefix GatewayPathMatchType = "PathPrefix"
GatewayPathMatchTypeExact GatewayPathMatchType = "Exact"
GatewayPathMatchTypeRegularExpression GatewayPathMatchType = "RegularExpression"
)

Values

GatewayPathMatchTypePathPrefix"PathPrefix"
Matches based on a URL path prefix split by /. Equivalent to the Gateway API PathPrefix match type.
GatewayPathMatchTypeExact"Exact"
Matches the URL path exactly and with case sensitivity.
GatewayPathMatchTypeRegularExpression"RegularExpression"
Matches the URL path against an implementation-defined regular expression. Support is optional in the Gateway API spec; check your controller's documentation before using it.