# GatewayPathMatchType

- Module: [Aspire.Hosting.Kubernetes](/reference/api/typescript/aspire.hosting.kubernetes.md)
- Version: `13.4.0-preview.1.26281.18`
- Kind: `enum`
- Source: [GitHub](https://github.com/microsoft/aspire)

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

```typescript
enum GatewayPathMatchType {
  PathPrefix = 0,
  Exact = 1,
  RegularExpression = 2,
}
```

## Values

- `PathPrefix` = `0`
- `Exact` = `1`
- `RegularExpression` = `2`
