Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

YarpRoute.withTransformResponseHeader

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

Signature

methodwithTransformResponseHeader
Adds the transform which will append or set the response header.
withTransformResponseHeader(
headerName: string,
value: string,
append?: boolean,
condition?: ResponseCondition): YarpRoute
headerNamestring
valuestring
appendbooleanoptional= True
conditionResponseConditionoptional= Success
YarpRoute

Defined on

This method is defined on the following type: