# GatewayPathMatchType

- Module: [Aspire.Hosting.Kubernetes](/reference/api/go/aspire.hosting.kubernetes.md)
- Version: `17.0.0`
- Kind: `enum`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

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`).

## Definition

```go
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.
