ServerRule constructor
ServerRule(
- String pathPattern,
- 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);