# YarpRoute.withTransformRequestHeaderRouteValue

- Module: [Aspire.Hosting.Yarp](/reference/api/typescript/aspire.hosting.yarp.md)
- Defined on: [YarpRoute](/reference/api/typescript/aspire.hosting.yarp/yarproute.md)
- Version: `13.4.0`
- Kind: `method`

Adds the transform which will append or set the request header from a route value.

## Definition

```typescript
interface YarpRoute {
  // ... omitted for brevity
  withTransformRequestHeaderRouteValue(
      headerName: string,
      routeValueKey: string,
      append?: boolean): YarpRoute;
}
```

## Signature

```typescript
withTransformRequestHeaderRouteValue(
    headerName: string,
    routeValueKey: string,
    append?: boolean): YarpRoute
```

## Parameters

- `headerName` (`string`)
- `routeValueKey` (`string`)
- `append` (`boolean`) `optional` `= True`

## Returns

[YarpRoute](/reference/api/typescript/aspire.hosting.yarp/yarproute.md)

## Defined on

- [YarpRoute](/reference/api/typescript/aspire.hosting.yarp/yarproute.md) -- `handle`
