# ForwardedTransformExtensions

- Kind: `class`
- Package: [Aspire.Hosting.Yarp](/reference/api/csharp/aspire.hosting.yarp.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.Yarp.Transforms`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Yarp/ConfigurationBuilder/Transforms/ForwardedTransformExtensions.cs)

Extensions for adding forwarded header transforms.

## Definition

```csharp
namespace Aspire.Hosting.Yarp.Transforms;

public static class ForwardedTransformExtensions
{
    // ...
}
```

## Methods

- [WithTransformClientCertHeader(YarpRoute, string)](/reference/api/csharp/aspire.hosting.yarp/forwardedtransformextensions/methods.md#withtransformclientcertheader-yarproute-string) : [YarpRoute](/reference/api/csharp/aspire.hosting.yarp/yarproute.md) `extension` `ats export` -- Adds the transform which will set the given header with the Base64 encoded client certificate.
- [WithTransformForwarded(YarpRoute, bool, bool, NodeFormat, NodeFormat, ForwardedTransformActions)](/reference/api/csharp/aspire.hosting.yarp/forwardedtransformextensions/methods.md#withtransformforwarded-yarproute-bool-bool-nodeformat-nodeformat-forwardedtransformactions) : [YarpRoute](/reference/api/csharp/aspire.hosting.yarp/yarproute.md) `extension` `ats export` -- Adds the transform which will add the Forwarded header as defined by [RFC 7239](https://tools.ietf.org/html/rfc7239).
- [WithTransformXForwarded(YarpRoute, string, ForwardedTransformActions, ForwardedTransformActions?, ForwardedTransformActions?, ForwardedTransformActions?, ForwardedTransformActions?)](/reference/api/csharp/aspire.hosting.yarp/forwardedtransformextensions/methods.md#withtransformxforwarded-yarproute-string-forwardedtransformactions-forwardedtransformactions-forwardedtransformactions-forwardedtransformactions-forwardedtransformactions) : [YarpRoute](/reference/api/csharp/aspire.hosting.yarp/yarproute.md) `extension` `ats export` -- Adds the transform which will add X-Forwarded-* headers.
