Skip to content
Docs Try Aspire

withTransformUseOriginalHostHeader

Function
📦 Aspire.Hosting.Yarp v13.2.0-preview.1.26159.1
interface YarpRoute {
// ... omitted for brevity
withTransformUseOriginalHostHeader(useOriginal?: boolean): YarpRoute;
}

Signature

method withTransformUseOriginalHostHeader
Adds the transform which will copy the incoming request Host header to the proxy request.
withTransformUseOriginalHostHeader(useOriginal?: boolean): YarpRoute
useOriginal boolean optional = True
YarpRoute

Applies to

This function is an extension method on the following types: