YarpRoute.WithTransformPathRemovePrefix

Method
📦 Aspire.Hosting.Yarp v17.0.0
type YarpRoute interface {
// ... 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
prefixstringThe matching prefix to remove.
YarpRoute

The configured YarpRoute.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: