Skip to content
Docs Try Aspire

withTransformPathPrefix

Function
📦 Aspire.Hosting.Yarp v13.2.0
interface YarpRoute {
// ... omitted for brevity
withTransformPathPrefix(prefix: string): YarpRoute;
}

Signature

method withTransformPathPrefix
Adds the transform which will prefix the request path with the given value.
withTransformPathPrefix(prefix: string): YarpRoute
prefix string
YarpRoute

Applies to

This function is an extension method on the following types: