Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithTransformPathRemovePrefix

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

Applies to

This method applies to the following types: