Skip to content
Docs Try Aspire
Docs Try

withTransformResponseHeader

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

Signature

method withTransformResponseHeader
Adds the transform which will append or set the response header.
withTransformResponseHeader(
headerName: string,
value: string,
append?: boolean,
condition?: ResponseCondition): YarpRoute
headerName string
value string
append boolean optional = True
condition ResponseCondition optional = Success
YarpRoute

Applies to

This method applies to the following types: