YarpRoute.WithTransformForwarded

Method
📦 Aspire.Hosting.Yarp v17.0.0
type YarpRoute interface {
// ... omitted for brevity
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().

Defined on

This method is defined on the following type: