HostRouteSelector
data class HostRouteSelector(hostList: List<String>, hostPatterns: List<Regex>, portsList: List<Int>) : RouteSelector
Content copied to clipboard
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
Constructors
Types
Functions
Link copied to clipboard
open override fun evaluate(context: RoutingResolveContext, segmentIndex: Int): RouteSelectorEvaluation
Content copied to clipboard
Evaluates this selector against context and a path segment at segmentIndex.