# HttpRouteSpecV1

- Kind: `class`
- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Version: `13.3.0-preview.1.26254.5`
- Namespace: `Aspire.Hosting.Kubernetes.Resources`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/HttpRouteV1.cs)

Represents the specification of an HTTPRoute resource.

## Definition

```csharp
namespace Aspire.Hosting.Kubernetes.Resources;

public sealed class HttpRouteSpecV1
{
    // ...
}
```

## Constructors

- [HttpRouteSpecV1](/reference/api/csharp/aspire.hosting.kubernetes/httproutespecv1/constructors.md#constructor)

## Properties

- [Hostnames](/reference/api/csharp/aspire.hosting.kubernetes/httproutespecv1/properties.md#hostnames) : `List<string>` `get` -- Gets the hostnames that this route matches. If empty, matches all hostnames.
- [ParentRefs](/reference/api/csharp/aspire.hosting.kubernetes/httproutespecv1/properties.md#parentrefs) : [List<HttpRouteParentRefV1>](/reference/api/csharp/aspire.hosting.kubernetes/httprouteparentrefv1.md) `get` -- Gets the parent references that this route attaches to (typically Gateway resources).
- [Rules](/reference/api/csharp/aspire.hosting.kubernetes/httproutespecv1/properties.md#rules) : [List<HttpRouteRuleV1>](/reference/api/csharp/aspire.hosting.kubernetes/httprouterulev1.md) `get` -- Gets the routing rules for this HTTPRoute.
