PathTransformExtensions.WithTransformPathPrefix Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Clones the route and adds the transform which will prefix the request path with the given value.
public static Yarp.ReverseProxy.Configuration.RouteConfig WithTransformPathPrefix (this Yarp.ReverseProxy.Configuration.RouteConfig route, Microsoft.AspNetCore.Http.PathString prefix);
static member WithTransformPathPrefix : Yarp.ReverseProxy.Configuration.RouteConfig * Microsoft.AspNetCore.Http.PathString -> Yarp.ReverseProxy.Configuration.RouteConfig
<Extension()>
Public Function WithTransformPathPrefix (route As RouteConfig, prefix As PathString) As RouteConfig
Parameters
- route
- RouteConfig
- prefix
- PathString