HostRouteSelector

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

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

Link copied to clipboard
fun HostRouteSelector(hostList: List<String>, hostPatterns: List<Regex>, portsList: List<Int>)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun evaluate(context: RoutingResolveContext, segmentIndex: Int): RouteSelectorEvaluation

Evaluates this selector against context and a path segment at segmentIndex.

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val hostList: List<String>
Link copied to clipboard
val hostPatterns: List<Regex>
Link copied to clipboard
val portsList: List<Int>
Link copied to clipboard
val quality: Double