Del via


PathTransformExtensions.WithTransformPathRemovePrefix Method

Definition

Clones the route and adds the transform which will remove the matching prefix from the request path.

public static Yarp.ReverseProxy.Configuration.RouteConfig WithTransformPathRemovePrefix (this Yarp.ReverseProxy.Configuration.RouteConfig route, Microsoft.AspNetCore.Http.PathString prefix);
static member WithTransformPathRemovePrefix : Yarp.ReverseProxy.Configuration.RouteConfig * Microsoft.AspNetCore.Http.PathString -> Yarp.ReverseProxy.Configuration.RouteConfig
<Extension()>
Public Function WithTransformPathRemovePrefix (route As RouteConfig, prefix As PathString) As RouteConfig

Parameters

route
RouteConfig
prefix
PathString

Returns

Applies to