# YarpRouteHeaderMatch

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

Represents a header-based route match for a YARP route.

## Definition

```go
type YarpRouteHeaderMatch struct {
    Name            string          `json:"Name"`
    Values          []string        `json:"Values"`
    IsCaseSensitive bool            `json:"IsCaseSensitive"`
    Mode            HeaderMatchMode `json:"Mode"`
}
```

## Fields

- `Name`: `string` -- Gets or sets the header name to match.
- `Values`: `[]string` -- Gets or sets the header values to match.
- `IsCaseSensitive`: `bool` -- Gets or sets a value indicating whether the header comparison is case-sensitive.
- `Mode`: `HeaderMatchMode` -- Gets or sets the matching mode for the header comparison.
