port

fun Routing.port(vararg ports: Int, build: Routing.() -> Unit): Routing

Creates a route to match a request port.

When passes, it puts a request host and port into call parameters by the HostRouteSelector.HostNameParameter and HostRouteSelector.PortParameter keys.

Parameters

ports

a list of ports to be passed

Throws

if no ports were specified