Skip to content
Docs Try Aspire
Docs Try

PathTransformExtensions Methods

Class Methods 4 members
Extensions for adding path transforms.
WithTransformPathPrefix(YarpRoute, PathString) Section titled WithTransformPathPrefix(YarpRoute, PathString) extension YarpRoute
Adds the transform which will prefix the request path with the given value.
public static class PathTransformExtensions
{
public static YarpRoute WithTransformPathPrefix(
this YarpRoute route,
PathString prefix)
{
// ...
}
}
prefix PathString
This overload is not available in polyglot app hosts. Use the string-based overload instead.
WithTransformPathRemovePrefix(YarpRoute, PathString) Section titled WithTransformPathRemovePrefix(YarpRoute, PathString) extension YarpRoute
Adds the transform which will remove the matching prefix from the request path.
public static class PathTransformExtensions
{
public static YarpRoute WithTransformPathRemovePrefix(
this YarpRoute route,
PathString prefix)
{
// ...
}
}
prefix PathString
This overload is not available in polyglot app hosts. Use the string-based overload instead.
WithTransformPathRouteValues(YarpRoute, PathString) Section titled WithTransformPathRouteValues(YarpRoute, PathString) extension YarpRoute
Adds the transform which will set the request path with the given value.
public static class PathTransformExtensions
{
public static YarpRoute WithTransformPathRouteValues(
this YarpRoute route,
PathString pattern)
{
// ...
}
}
pattern PathString
This overload is not available in polyglot app hosts. Use the string-based overload instead.
WithTransformPathSet(YarpRoute, PathString) Section titled WithTransformPathSet(YarpRoute, PathString) extension YarpRoute
Adds the transform which sets the request path with the given value.
public static class PathTransformExtensions
{
public static YarpRoute WithTransformPathSet(
this YarpRoute route,
PathString path)
{
// ...
}
}
path PathString
This overload is not available in polyglot app hosts. Use the string-based overload instead.