Skip to content
Docs Try Aspire

YarpRoute.withTransformResponseHeaderRemove

Method
📦 Aspire.Hosting.Yarp v13.2.0-preview.1.26159.1
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

Defined on

This method is defined on the following type: