Class PathTransformExtensions
- Namespace
- Yarp.ReverseProxy.Transforms
- Assembly
- Yarp.ReverseProxy.dll
Extensions for adding path transforms.
public static class PathTransformExtensions
- Inheritance
-
PathTransformExtensions
- Inherited Members
Methods
AddPathPrefix(TransformBuilderContext, PathString)
Adds the transform which will prefix the request path with the given value.
public static TransformBuilderContext AddPathPrefix(this TransformBuilderContext context, PathString prefix)
Parameters
contextTransformBuilderContextprefixPathString
Returns
AddPathRemovePrefix(TransformBuilderContext, PathString)
Adds the transform which will remove the matching prefix from the request path.
public static TransformBuilderContext AddPathRemovePrefix(this TransformBuilderContext context, PathString prefix)
Parameters
contextTransformBuilderContextprefixPathString
Returns
AddPathRouteValues(TransformBuilderContext, PathString)
Clones the route and adds the transform which will set the request path with the given value.
public static TransformBuilderContext AddPathRouteValues(this TransformBuilderContext context, PathString pattern)
Parameters
contextTransformBuilderContextpatternPathString
Returns
AddPathSet(TransformBuilderContext, PathString)
Adds the transform which sets the request path with the given value.
public static TransformBuilderContext AddPathSet(this TransformBuilderContext context, PathString path)
Parameters
contextTransformBuilderContextpathPathString
Returns
WithTransformPathPrefix(RouteConfig, PathString)
Clones the route and adds the transform which will prefix the request path with the given value.
public static RouteConfig WithTransformPathPrefix(this RouteConfig route, PathString prefix)
Parameters
routeRouteConfigprefixPathString
Returns
WithTransformPathRemovePrefix(RouteConfig, PathString)
Clones the route and adds the transform which will remove the matching prefix from the request path.
public static RouteConfig WithTransformPathRemovePrefix(this RouteConfig route, PathString prefix)
Parameters
routeRouteConfigprefixPathString
Returns
WithTransformPathRouteValues(RouteConfig, PathString)
Clones the route and adds the transform which will set the request path with the given value.
public static RouteConfig WithTransformPathRouteValues(this RouteConfig route, PathString pattern)
Parameters
routeRouteConfigpatternPathString
Returns
WithTransformPathSet(RouteConfig, PathString)
Clones the route and adds the transform which sets the request path with the given value.
public static RouteConfig WithTransformPathSet(this RouteConfig route, PathString path)
Parameters
routeRouteConfigpathPathString