Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithTransformPathPrefix

Method
📦 Aspire.Hosting.Yarp v17.0.0
func (YarpRoute) 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().

Applies to

This method applies to the following types: