ktor-server-core / io.ktor.routing / HostRouteSelector / <init>

<init>

HostRouteSelector(hostList: List<String>, hostPatterns: List<Regex>, portsList: List<Int>)

Evaluates a route against a request's host and port

Parameters

hostList - contains exact host names

hostPatterns - contains host patterns to match

portsList - contains possible ports or empty to match all ports