Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithTransformForwarded

Method
📦 Aspire.Hosting.Yarp v17.0.0
func (YarpRoute) WithTransformForwarded(options ...*WithTransformForwardedOptions) YarpRoute

Signature

methodWithTransformForwarded
Adds the transform which will add the Forwarded header as defined by RFC 7239.
WithTransformForwarded(options ...*WithTransformForwardedOptions) YarpRoute
options...*WithTransformForwardedOptionsOptional settings, described under Options.

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

UseHost*bool
UseProto*bool
ForFormat*NodeFormat
ByFormat*NodeFormat
Action*ForwardedTransformActions
YarpRoute

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

Applies to

This method applies to the following types: