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) { // ... }}Parameters
route YarpRoute prefix PathString Remarks
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) { // ... }}Parameters
route YarpRoute prefix PathString Remarks
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) { // ... }}Parameters
route YarpRoute pattern PathString Remarks
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) { // ... }}Parameters
route YarpRoute path PathString Remarks
This overload is not available in polyglot app hosts. Use the string-based overload instead.