# PathTransformExtensions

- 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/PathTransformExtensions.cs)

Extensions for adding path transforms.

## Definition

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

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

## Methods

- [WithTransformPathPrefix(YarpRoute, PathString)](/reference/api/csharp/aspire.hosting.yarp/pathtransformextensions/methods.md#withtransformpathprefix-yarproute-pathstring) : [YarpRoute](/reference/api/csharp/aspire.hosting.yarp/yarproute.md) `extension` `ats ignored` -- Adds the transform which will prefix the request path with the given value.
- [WithTransformPathRemovePrefix(YarpRoute, PathString)](/reference/api/csharp/aspire.hosting.yarp/pathtransformextensions/methods.md#withtransformpathremoveprefix-yarproute-pathstring) : [YarpRoute](/reference/api/csharp/aspire.hosting.yarp/yarproute.md) `extension` `ats ignored` -- Adds the transform which will remove the matching prefix from the request path.
- [WithTransformPathRouteValues(YarpRoute, PathString)](/reference/api/csharp/aspire.hosting.yarp/pathtransformextensions/methods.md#withtransformpathroutevalues-yarproute-pathstring) : [YarpRoute](/reference/api/csharp/aspire.hosting.yarp/yarproute.md) `extension` `ats ignored` -- Adds the transform which will set the request path with the given value.
- [WithTransformPathSet(YarpRoute, PathString)](/reference/api/csharp/aspire.hosting.yarp/pathtransformextensions/methods.md#withtransformpathset-yarproute-pathstring) : [YarpRoute](/reference/api/csharp/aspire.hosting.yarp/yarproute.md) `extension` `ats ignored` -- Adds the transform which sets the request path with the given value.
