withTransformXForwarded
Function
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 string optional = X-Forwarded- xDefault ForwardedTransformActions optional = Set xFor ForwardedTransformActions optional xHost ForwardedTransformActions optional xProto ForwardedTransformActions optional xPrefix ForwardedTransformActions optional Returns
YarpRoute Applies to
This function is an extension method on the following types: