Skip to content
Docs Try Aspire

withTransformResponseHeaderRemove

Function
📦 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

Applies to

This function is an extension method on the following types: