YarpRoute.withTransformXForwarded
Method
interface YarpRoute { // ... omitted for brevity withTransformXForwarded( headerPrefix?: string, xDefault?: ForwardedTransformActions, xFor?: ForwardedTransformActions, xHost?: ForwardedTransformActions, xProto?: ForwardedTransformActions, xPrefix?: ForwardedTransformActions): YarpRoute;}Signature
method
withTransformXForwardedAdds the transform which will add X-Forwarded-* headers.
withTransformXForwarded( headerPrefix?: string, xDefault?: ForwardedTransformActions, xFor?: ForwardedTransformActions, xHost?: ForwardedTransformActions, xProto?: ForwardedTransformActions, xPrefix?: ForwardedTransformActions): YarpRouteParameters
headerPrefixstringoptional= X-Forwarded-xDefaultForwardedTransformActionsoptional= SetxForForwardedTransformActionsoptionalxHostForwardedTransformActionsoptionalxProtoForwardedTransformActionsoptionalxPrefixForwardedTransformActionsoptionalReturns
YarpRouteDefined on
This method is defined on the following type: