withTransformXForwarded
Method
interface YarpRoute { // ... omitted for brevity withTransformXForwarded( headerPrefix?: string, xDefault?: ForwardedTransformActions, xFor?: ForwardedTransformActions, xHost?: ForwardedTransformActions, xProto?: ForwardedTransformActions, xPrefix?: ForwardedTransformActions): YarpRoute;}Signature
method
withTransformXForwarded Adds the transform which will add X-Forwarded-* headers.
withTransformXForwarded( headerPrefix?: string, xDefault?: ForwardedTransformActions, xFor?: ForwardedTransformActions, xHost?: ForwardedTransformActions, xProto?: ForwardedTransformActions, xPrefix?: ForwardedTransformActions): YarpRouteParameters
headerPrefix stringoptional= X-Forwarded-xDefault ForwardedTransformActions optional= SetxFor ForwardedTransformActions optionalxHost ForwardedTransformActions optionalxProto ForwardedTransformActions optionalxPrefix ForwardedTransformActions optionalReturns
YarpRoute Applies to
This method applies to the following types: