Skip to content
Docs Try Aspire

YarpRoute.withMatchHosts

Method
📦 Aspire.Hosting.Yarp v13.2.0
interface YarpRoute {
// ... omitted for brevity
withMatchHosts(hosts: string[]): YarpRoute;
}

Signature

method withMatchHosts
Matches requests that contain the specified host headers.
withMatchHosts(hosts: string[]): YarpRoute
hosts string[]
YarpRoute

Defined on

This method is defined on the following type: