port

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

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