Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

YarpRoute.withTransformResponseHeaderRemove

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

Signature

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

Defined on

This method is defined on the following type: