Skip to content
Docs Try Aspire

PathTransformExtensions

Class static net10.0
📦 Aspire.Hosting.Yarp v13.1.2
Extensions for adding path transforms.
namespace Aspire.Hosting.Yarp.Transforms;
public static class PathTransformExtensions
{
// ...
}
WithTransformPathPrefix(YarpRoute, PathString)extension
Adds the transform which will prefix the request path with the given value.
WithTransformPathRemovePrefix(YarpRoute, PathString)extension
Adds the transform which will remove the matching prefix from the request path.
WithTransformPathRouteValues(YarpRoute, PathString)extension
Adds the transform which will set the request path with the given value.
WithTransformPathSet(YarpRoute, PathString)extension
Adds the transform which sets the request path with the given value.
View all methods