Skip to content
DocsTry Aspire
DocsTry

withTransformResponseHeaderRemove

Method
📦 Aspire.Hosting.Yarp v13.4.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

Applies to

This method applies to the following types: