Class PathTransformExtensions
Extensions for adding path transforms.
Inheritance
System.Object
PathTransformExtensions
Assembly: Yarp.ReverseProxy.dll
public static class PathTransformExtensions : object
Methods
|
Improve this Doc
View Source
AddPathPrefix(TransformBuilderContext, PathString)
Adds the transform which will prefix the request path with the given value.
Declaration
public static TransformBuilderContext AddPathPrefix(this TransformBuilderContext context, PathString prefix)
Parameters
Returns
|
Improve this Doc
View Source
AddPathRemovePrefix(TransformBuilderContext, PathString)
Adds the transform which will remove the matching prefix from the request path.
Declaration
public static TransformBuilderContext AddPathRemovePrefix(this TransformBuilderContext context, PathString prefix)
Parameters
Returns
|
Improve this Doc
View Source
AddPathRouteValues(TransformBuilderContext, PathString)
Clones the route and adds the transform which will set the request path with the given value.
Declaration
public static TransformBuilderContext AddPathRouteValues(this TransformBuilderContext context, PathString pattern)
Parameters
Returns
|
Improve this Doc
View Source
AddPathSet(TransformBuilderContext, PathString)
Adds the transform which sets the request path with the given value.
Declaration
public static TransformBuilderContext AddPathSet(this TransformBuilderContext context, PathString path)
Parameters
Returns
|
Improve this Doc
View Source
Clones the route and adds the transform which will prefix the request path with the given value.
Declaration
public static RouteConfig WithTransformPathPrefix(this RouteConfig route, PathString prefix)
Parameters
Type |
Name |
Description |
RouteConfig |
route |
|
PathString |
prefix |
|
Returns
|
Improve this Doc
View Source
Clones the route and adds the transform which will remove the matching prefix from the request path.
Declaration
public static RouteConfig WithTransformPathRemovePrefix(this RouteConfig route, PathString prefix)
Parameters
Type |
Name |
Description |
RouteConfig |
route |
|
PathString |
prefix |
|
Returns
|
Improve this Doc
View Source
Clones the route and adds the transform which will set the request path with the given value.
Declaration
public static RouteConfig WithTransformPathRouteValues(this RouteConfig route, PathString pattern)
Parameters
Type |
Name |
Description |
RouteConfig |
route |
|
PathString |
pattern |
|
Returns
|
Improve this Doc
View Source
Clones the route and adds the transform which sets the request path with the given value.
Declaration
public static RouteConfig WithTransformPathSet(this RouteConfig route, PathString path)
Parameters
Type |
Name |
Description |
RouteConfig |
route |
|
PathString |
path |
|
Returns