Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithTransformXForwarded

Method
📦 Aspire.Hosting.Yarp v17.0.0
func (YarpRoute) WithTransformXForwarded(options ...*WithTransformXForwardedOptions) YarpRoute

Signature

methodWithTransformXForwarded
Adds the transform which will add X-Forwarded-* headers.
WithTransformXForwarded(options ...*WithTransformXForwardedOptions) YarpRoute
options...*WithTransformXForwardedOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithTransformXForwardedOptions argument.

HeaderPrefix*string
XDefault*ForwardedTransformActions
XFor*ForwardedTransformActions
XHost*ForwardedTransformActions
XProto*ForwardedTransformActions
XPrefix*ForwardedTransformActions
YarpRoute

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: