ports property

List<int> ports
getter/setter pair

The port number constraints for this route.

Restricts the route to specific port numbers. Useful for development environments or when running multiple services on different ports.

  • [] (default): Matches all ports
  • [8080]: Matches only requests on port 8080
  • [80, 443]: Matches HTTP and HTTPS standard ports

Implementation

late List<int> ports;