# YarpRoute.withTransformCopyResponseTrailers

- 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 enable or suppress copying response trailers to the client response.

## Definition

```typescript
interface YarpRoute {
  // ... omitted for brevity
  withTransformCopyResponseTrailers(copy?: boolean): YarpRoute;
}
```

## Signature

```typescript
withTransformCopyResponseTrailers(copy?: boolean): YarpRoute
```

## Parameters

- `copy` (`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`
