Skip to content
Docs Try Aspire

PathTransformExtensions

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