Skip to content
DocsTry Aspire
DocsTry

withTransformPathRemovePrefix

Method
📦 Aspire.Hosting.Yarp v13.4.0
interface YarpRoute {
// ... omitted for brevity
withTransformPathRemovePrefix(prefix: string): YarpRoute;
}

Signature

methodwithTransformPathRemovePrefix
Adds the transform which will remove the matching prefix from the request path.
withTransformPathRemovePrefix(prefix: string): YarpRoute
prefixstring
YarpRoute

Applies to

This method applies to the following types: