Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithTransformUseOriginalHostHeader

Method
📦 Aspire.Hosting.Yarp v17.0.0
func (YarpRoute) WithTransformUseOriginalHostHeader(options ...*WithTransformUseOriginalHostHeaderOptions) YarpRoute

Signature

methodWithTransformUseOriginalHostHeader
Adds the transform which will copy the incoming request Host header to the proxy request.
WithTransformUseOriginalHostHeader(options ...*WithTransformUseOriginalHostHeaderOptions) YarpRoute
options...*WithTransformUseOriginalHostHeaderOptionsOptional settings, described under Options.

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

UseOriginal*bool
YarpRoute

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

Applies to

This method applies to the following types: