Skip to content
Docs Try Aspire
Docs Try

withTransformResponseHeaderRemove

Method
📦 Aspire.Hosting.Yarp v13.4.0
interface YarpRoute {
// ... omitted for brevity
withTransformResponseHeaderRemove(
headerName: string,
condition?: ResponseCondition): YarpRoute;
}

Signature

method withTransformResponseHeaderRemove
Adds the transform which will remove the response header.
withTransformResponseHeaderRemove(
headerName: string,
condition?: ResponseCondition): YarpRoute
headerName string
condition ResponseCondition optional = Success
YarpRoute

Applies to

This method applies to the following types: