Skip to content
DocsTry Aspire
DocsTry

YarpRoute.withTransformForwarded

Method
📦 Aspire.Hosting.Yarp v13.4.0
interface YarpRoute {
// ... omitted for brevity
withTransformForwarded(
useHost?: boolean,
useProto?: boolean,
forFormat?: NodeFormat,
byFormat?: NodeFormat,
action?: ForwardedTransformActions): YarpRoute;
}

Signature

methodwithTransformForwarded
Adds the transform which will add the Forwarded header as defined by [RFC 7239](https://tools.ietf.org/html/rfc7239).
withTransformForwarded(
useHost?: boolean,
useProto?: boolean,
forFormat?: NodeFormat,
byFormat?: NodeFormat,
action?: ForwardedTransformActions): YarpRoute
useHostbooleanoptional= True
useProtobooleanoptional= True
forFormatNodeFormatoptional= Random
byFormatNodeFormatoptional= Random
actionForwardedTransformActionsoptional= Set
YarpRoute

Defined on

This method is defined on the following type: