YarpRoute.WithTransformPathPrefix

Method
📦 Aspire.Hosting.Yarp v17.0.0
type YarpRoute interface {
// ... omitted for brevity
WithTransformPathPrefix(prefix string) YarpRoute
}

Signature

methodWithTransformPathPrefix
Adds the transform which will prefix the request path with the given value.
WithTransformPathPrefix(prefix string) YarpRoute
prefixstringThe path prefix to add.
YarpRoute

The configured YarpRoute.

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

Defined on

This method is defined on the following type: