Skip to content
DocsTry Aspire
DocsTry

YarpRoute.withTransformRequestHeaderRouteValue

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

Signature

methodwithTransformRequestHeaderRouteValue
Adds the transform which will append or set the request header from a route value.
withTransformRequestHeaderRouteValue(
headerName: string,
routeValueKey: string,
append?: boolean): YarpRoute
headerNamestring
routeValueKeystring
appendbooleanoptional= True
YarpRoute

Defined on

This method is defined on the following type: