Skip to content
Docs Try Aspire

YarpRoute.withTransformResponseHeader

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

Defined on

This method is defined on the following type: