ServerRule constructor

ServerRule(
  1. String pathPattern,
  2. RequestHandler handler
)

Constructor.

The pathPattern is the string representation of a Pattern and it determines if a HTTP request matches this rule or not.

Implementation

ServerRule(String pathPattern, this.handler) : pattern = Pattern(pathPattern);