Skip to content
Docs Try Aspire
Docs Try

GatewayPathMatchType

Enum net8.0
📦 Aspire.Hosting.Kubernetes v13.4.0-preview.1.26281.18
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 https://gateway-api.sigs.k8s.io/api-types/httproute/#path) and are distinct from the Ingress-flavoured IngressPathType because the two specs use different vocabularies (Ingress: Prefix, Gateway: PathPrefix).
namespace Aspire.Hosting.Kubernetes;
public enum GatewayPathMatchType
PathPrefix = 0
Matches based on a URL path prefix split by /. Equivalent to the Gateway API PathPrefix match type.
Exact = 1
Matches the URL path exactly and with case sensitivity.
RegularExpression = 2
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.