YarpRoute.withTransformForwarded
Method
interface YarpRoute { // ... omitted for brevity withTransformForwarded( useHost?: boolean, useProto?: boolean, forFormat?: NodeFormat, byFormat?: NodeFormat, action?: ForwardedTransformActions): YarpRoute;}Signature
method
withTransformForwardedAdds 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): YarpRouteParameters
useHostbooleanoptional= TrueuseProtobooleanoptional= TrueforFormatNodeFormatoptional= RandombyFormatNodeFormatoptional= RandomactionForwardedTransformActionsoptional= SetReturns
YarpRouteDefined on
This method is defined on the following type: