# PathTransformExtensions

- Kind: `class`
- Package: [Aspire.Hosting.Yarp](/reference/api/csharp/aspire.hosting.yarp.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting.Yarp.Transforms`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/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.
